diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-07-20 17:15:19 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-07-20 17:15:19 +0000 |
commit | f2ae067a4410b5174ea6690b47f5e96f5d6565b6 (patch) | |
tree | c956ef1a6a8f85f869755ce1bb2263dcbd219cec | |
parent | 94d8b0a4d557cf7806552df9ea171b9b63574c0e (diff) |
[Author: alcor]
Fixes for tvl
R=thomasvl,dmaclach
DELTA=8 (0 added, 2 deleted, 6 changed)
-rw-r--r-- | AppKit/GTMTheme.h | 3 | ||||
-rw-r--r-- | AppKit/GTMTheme.m | 5 | ||||
-rw-r--r-- | Foundation/GTMNSFileManager+Carbon.h | 2 | ||||
-rw-r--r-- | Foundation/GTMNSFileManager+Carbon.m | 4 |
4 files changed, 6 insertions, 8 deletions
diff --git a/AppKit/GTMTheme.h b/AppKit/GTMTheme.h index c4de712..d5e02b9 100644 --- a/AppKit/GTMTheme.h +++ b/AppKit/GTMTheme.h @@ -44,11 +44,10 @@ typedef NSUInteger GTMThemeState; // based on interpolation of a single background color @interface GTMTheme : NSObject { -@private + @private NSColor *backgroundColor_; // bound to user defaults NSImage *backgroundImage_; // bound to user defaults NSMutableDictionary *values_; // cached values - NSString *basePath_; // base path for referenced resources } // Access the global theme. By default this is bound to user defaults diff --git a/AppKit/GTMTheme.m b/AppKit/GTMTheme.m index f606f4c..91c4891 100644 --- a/AppKit/GTMTheme.m +++ b/AppKit/GTMTheme.m @@ -46,7 +46,6 @@ NSString *kGTMThemeDidChangeNotification = @"kGTMThemeDidChangeNotification"; @end @interface GTMTheme () -- (void)bindToUserDefaults; - (void)sendChangeNotification; @end @@ -189,7 +188,7 @@ NSString *kGTMThemeDidChangeNotification = @"kGTMThemeDidChangeNotification"; // TODO(alcor): dim images when disabled color = [NSColor colorWithPatternImage:backgroundImage_]; - if (state != GTMThemeStateActiveWindow) { + if ((state & GTMThemeStateActiveWindow) != GTMThemeStateActiveWindow) { NSImage *image = [self backgroundImageForStyle:style state:GTMThemeStateActiveWindow]; @@ -218,7 +217,7 @@ NSString *kGTMThemeDidChangeNotification = @"kGTMThemeDidChangeNotification"; } } - if (value) [self cacheValue:value forSelector:_cmd style:style state:state]; + [self cacheValue:value forSelector:_cmd style:style state:state]; return value; } diff --git a/Foundation/GTMNSFileManager+Carbon.h b/Foundation/GTMNSFileManager+Carbon.h index a303194..63f8b3c 100644 --- a/Foundation/GTMNSFileManager+Carbon.h +++ b/Foundation/GTMNSFileManager+Carbon.h @@ -40,7 +40,7 @@ // - (NSString *)gtm_pathFromAliasData:(NSData *)alias; -// Converts an alias to a path without triggering UI +// Converts an alias to a path without optional triggering of UI. // Args: // alias - an alias wrapped up in an NSData // resolve - whether to try to resolve the alias, or simply read path data diff --git a/Foundation/GTMNSFileManager+Carbon.m b/Foundation/GTMNSFileManager+Carbon.m index 465093e..8c51f66 100644 --- a/Foundation/GTMNSFileManager+Carbon.m +++ b/Foundation/GTMNSFileManager+Carbon.m @@ -73,9 +73,9 @@ CantUseParams: } } else { OSStatus err - = FSCopyAliasInfo (alias, NULL, NULL, (CFStringRef *)(&path), NULL, NULL); + = FSCopyAliasInfo(alias, NULL, NULL, (CFStringRef *)(&path), NULL, NULL); if (err != noErr) path = nil; - [path autorelease]; + GTMCFAutorelease(path); } DisposeHandle((Handle)alias); CantMakeHandle: |