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. --- Source/SPWindowController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPWindowController.m') diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m index 96a27d0a..f90b423d 100644 --- a/Source/SPWindowController.m +++ b/Source/SPWindowController.m @@ -259,7 +259,7 @@ enum { //rebind the selected cell to the new control [control bindPropertiesForCell:selectedCell andTabViewItem:selectedTabViewItem]; - [selectedCell setControlView:control]; + [selectedCell setCustomControlView:control]; [[tabBar tabView] removeTabViewItem:[selectedCell representedObject]]; -- cgit v1.2.3