diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-06-24 13:35:22 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-06-24 13:35:22 +0000 |
commit | ca64d295c058dcd3d5308cce56379401e6658434 (patch) | |
tree | 31f75babd1032ee0e5b7df5e6916b596c7ca1f46 /Source/SPWindowController.m | |
parent | cc24661e6566d5f35e092642fe1fd435b49ad385 (diff) | |
download | sequelpro-ca64d295c058dcd3d5308cce56379401e6658434.tar.gz sequelpro-ca64d295c058dcd3d5308cce56379401e6658434.tar.bz2 sequelpro-ca64d295c058dcd3d5308cce56379401e6658434.zip |
• initial support for open a spfs session file (works rudimentary - fine-tuning comes soon)
• added constant "SPBundleFileExtension"
Diffstat (limited to 'Source/SPWindowController.m')
-rw-r--r-- | Source/SPWindowController.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m index 89879b0f..4c25ece2 100644 --- a/Source/SPWindowController.m +++ b/Source/SPWindowController.m @@ -291,6 +291,19 @@ return documentsArray; } +/** + * Select tab at index. + */ +- (void)selectTabAtIndex:(NSInteger)index +{ + if([[tabBar cells] count] > 0 && [[tabBar cells] count] > index) { + [tabView selectTabViewItemAtIndex:index]; + } else if([[tabBar cells] count]) { + [tabView selectTabViewItemAtIndex:0]; + } + +} + #pragma mark - #pragma mark Tab view delegate methods |