aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PSMTabBar/PSMTabDragAssistant.m
diff options
context:
space:
mode:
authorXu Jie <xujie04@gmail.com>2014-12-01 17:53:24 +0800
committerXu Jie <xujie04@gmail.com>2014-12-01 17:53:24 +0800
commit5195ce158690ef1fb39869a6727c3de4b110b496 (patch)
tree522616ea735cf79c3af15f7cad6226d19ab384ec /Frameworks/PSMTabBar/PSMTabDragAssistant.m
parent1af7e143385e716b5b0154854dda22a9c270ccad (diff)
downloadsequelpro-5195ce158690ef1fb39869a6727c3de4b110b496.tar.gz
sequelpro-5195ce158690ef1fb39869a6727c3de4b110b496.tar.bz2
sequelpro-5195ce158690ef1fb39869a6727c3de4b110b496.zip
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.
Diffstat (limited to 'Frameworks/PSMTabBar/PSMTabDragAssistant.m')
-rw-r--r--Frameworks/PSMTabBar/PSMTabDragAssistant.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabDragAssistant.m b/Frameworks/PSMTabBar/PSMTabDragAssistant.m
index db993b81..bb2d255a 100644
--- a/Frameworks/PSMTabBar/PSMTabDragAssistant.m
+++ b/Frameworks/PSMTabBar/PSMTabDragAssistant.m
@@ -367,7 +367,7 @@ static PSMTabDragAssistant *sharedDragAssistant = nil;
}
[[[self destinationTabBar] cells] replaceObjectAtIndex:destinationIndex withObject:[self draggedCell]];
- [[self draggedCell] setControlView:[self destinationTabBar]];
+ [[self draggedCell] setCustomControlView:[self destinationTabBar]];
// move actual NSTabViewItem
if ([self sourceTabBar] != [self destinationTabBar]) {
@@ -474,7 +474,7 @@ static PSMTabDragAssistant *sharedDragAssistant = nil;
//rebind the cell to the new control
[control bindPropertiesForCell:[self draggedCell] andTabViewItem:[[self draggedCell] representedObject]];
- [[self draggedCell] setControlView:control];
+ [[self draggedCell] setCustomControlView:control];
[[[self sourceTabBar] tabView] removeTabViewItem:[[self draggedCell] representedObject]];