diff options
author | stuconnolly <stuart02@gmail.com> | 2011-07-10 22:23:27 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-07-10 22:23:27 +0000 |
commit | 83300fa9c8341de78cb2f5fd2ddc57e778f1a2e7 (patch) | |
tree | 9ca63b94c2f3558ef0fafd5e81d2fcc3ceddd415 /Source/SPWindowController.m | |
parent | 9555a14652f743243c590455324a03bca702efd1 (diff) | |
download | sequelpro-83300fa9c8341de78cb2f5fd2ddc57e778f1a2e7.tar.gz sequelpro-83300fa9c8341de78cb2f5fd2ddc57e778f1a2e7.tar.bz2 sequelpro-83300fa9c8341de78cb2f5fd2ddc57e778f1a2e7.zip |
Add Sparkle to credits.
Diffstat (limited to 'Source/SPWindowController.m')
-rw-r--r-- | Source/SPWindowController.m | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m index ed18335d..f4094ac3 100644 --- a/Source/SPWindowController.m +++ b/Source/SPWindowController.m @@ -31,9 +31,9 @@ #import <PSMTabBar/PSMTabBarControl.h> #import <PSMTabBar/PSMTabStyle.h> -@interface SPWindowController (PrivateAPI) +@interface SPWindowController () -- (void) _updateProgressIndicatorForItem:(NSTabViewItem *)theItem; +- (void)_updateProgressIndicatorForItem:(NSTabViewItem *)theItem; @end @@ -760,20 +760,25 @@ return [selectedTableDocument performSelector:theSelector withObject:theObject]; } -@end - -@implementation SPWindowController (PrivateAPI) +/** + * When receiving an update for a bound value - an observed value on the + * document - ask the tab bar control to redraw as appropriate. + */ +- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context +{ + [tabBar update]; +} /** * Binds a tab bar item's progress indicator to the represented * tableDocument. */ -- (void) _updateProgressIndicatorForItem:(NSTabViewItem *)theItem +- (void)_updateProgressIndicatorForItem:(NSTabViewItem *)theItem { PSMTabBarCell *theCell = [[tabBar cells] objectAtIndex:[tabView indexOfTabViewItem:theItem]]; [[theCell indicator] setControlSize:NSSmallControlSize]; SPDatabaseDocument *theDocument = [theItem identifier]; - + [[theCell indicator] setHidden:NO]; NSMutableDictionary *bindingOptions = [NSMutableDictionary dictionary]; [bindingOptions setObject:NSNegateBooleanTransformerName forKey:@"NSValueTransformerName"]; @@ -782,13 +787,4 @@ [theDocument addObserver:self forKeyPath:@"isProcessing" options:0 context:nil]; } -/** - * When receiving an update for a bound value - an observed value on the - * document - ask the tab bar control to redraw as appropriate. - */ -- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context -{ - [tabBar update]; -} - @end
\ No newline at end of file |