diff options
author | avenjamin <avenjamin@gmail.com> | 2010-09-15 15:48:29 +0000 |
---|---|---|
committer | avenjamin <avenjamin@gmail.com> | 2010-09-15 15:48:29 +0000 |
commit | 42b58dcdda0c82473bfed4df8211c6f0f343c6fc (patch) | |
tree | 41305c83699d6c5f66de9050c1b28aea12590701 /Source | |
parent | 0909c91b7f986dfe45600bbb6340c79401ccce47 (diff) | |
download | sequelpro-42b58dcdda0c82473bfed4df8211c6f0f343c6fc.tar.gz sequelpro-42b58dcdda0c82473bfed4df8211c6f0f343c6fc.tar.bz2 sequelpro-42b58dcdda0c82473bfed4df8211c6f0f343c6fc.zip |
More work on tab creation target and action
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPWindowController.m | 6 |
1 files changed, 3 insertions, 3 deletions
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]; |