From 42b58dcdda0c82473bfed4df8211c6f0f343c6fc Mon Sep 17 00:00:00 2001 From: avenjamin Date: Wed, 15 Sep 2010 15:48:29 +0000 Subject: More work on tab creation target and action --- Source/SPWindowController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source') diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m index 341d8afa..23346af3 100644 --- a/Source/SPWindowController.m +++ b/Source/SPWindowController.m @@ -61,13 +61,13 @@ [tabBar setCellMaxWidth:250]; [tabBar setCellOptimumWidth:250]; [tabBar setSelectsTabsOnMouseDown:YES]; - [tabBar setDoubleClickCreatesTab:YES]; + [tabBar setCreatesTabOnDoubleClick:YES]; [tabBar setTearOffStyle:PSMTabBarTearOffAlphaWindow]; [tabBar setUsesSafariStyleDragging:YES]; // hook up add tab button - [[tabBar addTabButton] setTarget:self]; - [[tabBar addTabButton] setAction:@selector(addNewConnection:)]; + [tabBar setCreateNewTabTarget:self]; + [tabBar setCreateNewTabAction:@selector(addNewConnection:)]; // Retrieve references to the 'Close Window' and 'Close Tab' menus. These are updated as window focus changes. closeWindowMenuItem = [[[[NSApp mainMenu] itemWithTag:SPMainMenuFile] submenu] itemWithTag:1003]; -- cgit v1.2.3