From eb5fa28ec49e2aaecb5fd38c86f42a530498267b Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 8 Dec 2010 19:35:24 +0000 Subject: =?UTF-8?q?=E2=80=A2=20Bundle=20Editor:=20removed=20unnecessary=20?= =?UTF-8?q?tooltip;=20replace=20menu=20item=20title=20'Save'=20by=20'Expor?= =?UTF-8?q?t'=20=E2=80=A2=20improved=20check=20whether=20a=20doc=20window?= =?UTF-8?q?=20has=20a=20connection=20or=20not=20for=20running=20a=20Bundle?= =?UTF-8?q?=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Interfaces/English.lproj/BundleEditor.xib | 25 +++++++++++++++++-------- Source/SPStringAdditions.m | 4 ++-- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/Interfaces/English.lproj/BundleEditor.xib b/Interfaces/English.lproj/BundleEditor.xib index 8bcfbdd1..8f224ad4 100644 --- a/Interfaces/English.lproj/BundleEditor.xib +++ b/Interfaces/English.lproj/BundleEditor.xib @@ -23,7 +23,7 @@ YES - + YES @@ -351,7 +351,7 @@ - Save Bundle… + Export Bundle… 2147483647 @@ -383,6 +383,7 @@ + 3 YES 1 YES @@ -3261,6 +3262,7 @@ 904.IBPluginDependency 908.IBPluginDependency 909.IBPluginDependency + 920.IBAttributePlaceholdersKey 920.IBPluginDependency 932.IBAttributePlaceholdersKey 932.IBPluginDependency @@ -3432,7 +3434,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.brandonwalkin.BWToolkit - {{230, 222}, {243, 98}} + {{222, 223}, {243, 98}} com.brandonwalkin.BWToolkit com.brandonwalkin.BWToolkit com.apple.InterfaceBuilder.CocoaPlugin @@ -3473,11 +3475,10 @@ {{430, 598}, {167, 4}} com.apple.InterfaceBuilder.CocoaPlugin - ToolTip - - ToolTip - - Alphanumeric character string which inserts the favorite query string after expansion by pressing the ⇥ key. + YES + + + YES com.apple.InterfaceBuilder.CocoaPlugin @@ -3546,6 +3547,14 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + ToolTip + + ToolTip + + Save the selected Bundle to disk + + com.apple.InterfaceBuilder.CocoaPlugin ToolTip diff --git a/Source/SPStringAdditions.m b/Source/SPStringAdditions.m index 97339201..012f365c 100644 --- a/Source/SPStringAdditions.m +++ b/Source/SPStringAdditions.m @@ -537,14 +537,14 @@ if([[[NSApp mainWindow] delegate] respondsToSelector:@selector(selectedTableDocument)]) doc = [[[NSApp mainWindow] delegate] selectedTableDocument]; // Check if connected - if([[doc connectionID] isEqualToString:@"_"]) + if([doc getConnection] == nil) doc = nil; else { for (NSWindow *aWindow in [NSApp orderedWindows]) { if([[[[aWindow windowController] class] description] isEqualToString:@"SPWindowController"]) { if([[[aWindow windowController] documents] count] && [[[[[[aWindow windowController] documents] objectAtIndex:0] class] description] isEqualToString:@"SPDatabaseDocument"]) { // Check if connected - if(![[[[[aWindow windowController] documents] objectAtIndex:0] connectionID] isEqualToString:@"_"]) + if([[[[aWindow windowController] documents] objectAtIndex:0] getConnection]) doc = [[[aWindow windowController] documents] objectAtIndex:0]; else doc = nil; -- cgit v1.2.3