aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-06-24 13:35:22 +0000
committerBibiko <bibiko@eva.mpg.de>2010-06-24 13:35:22 +0000
commitca64d295c058dcd3d5308cce56379401e6658434 (patch)
tree31f75babd1032ee0e5b7df5e6916b596c7ca1f46 /Source/SPWindowController.m
parentcc24661e6566d5f35e092642fe1fd435b49ad385 (diff)
downloadsequelpro-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.m13
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