From 5195ce158690ef1fb39869a6727c3de4b110b496 Mon Sep 17 00:00:00 2001 From: Xu Jie Date: Mon, 1 Dec 2014 17:53:24 +0800 Subject: Remove a private API in PSMTabBarCell Directly assigning to _controlView of a NSActionCell is private and not allowed by Mac App Store. An _customControlView is used to replace _controlView in PSMTabBarCell to avoid direct assigning to _controlView. This should be the last private API to remove before going to Mac App Store. --- Frameworks/PSMTabBar/Styles/PSMAdiumTabStyle.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Frameworks/PSMTabBar/Styles/PSMAdiumTabStyle.m') diff --git a/Frameworks/PSMTabBar/Styles/PSMAdiumTabStyle.m b/Frameworks/PSMTabBar/Styles/PSMAdiumTabStyle.m index 758ebe21..be14707d 100644 --- a/Frameworks/PSMTabBar/Styles/PSMAdiumTabStyle.m +++ b/Frameworks/PSMTabBar/Styles/PSMAdiumTabStyle.m @@ -757,7 +757,7 @@ [bezier lineToPoint:NSMakePoint(NSMaxX(aRect), NSMaxY(aRect))]; [bezier lineToPoint:NSMakePoint(NSMaxX(aRect), NSMinY(aRect))]; - if ([[cell controlView] frame].size.height < 2) { + if ([[cell customControlView] frame].size.height < 2) { // special case of hidden control; need line across top of cell [bezier moveToPoint:NSMakePoint(aRect.origin.x, aRect.origin.y + 0.5)]; [bezier lineToPoint:NSMakePoint(aRect.origin.x+aRect.size.width, aRect.origin.y + 0.5)]; @@ -854,7 +854,7 @@ [NSGraphicsContext restoreGraphicsState]; [shadow release]; - [self drawInteriorWithTabCell:cell inView:[cell controlView]]; + [self drawInteriorWithTabCell:cell inView:[cell customControlView]]; } - (void)drawBackgroundInRect:(NSRect)rect -- cgit v1.2.3