Revision: 3136
http://skim-app.svn.sourceforge.net/skim-app/?rev=3136&view=rev
Author: hofman
Date: 2007-11-02 14:20:26 -0700 (Fri, 02 Nov 2007)
Log Message:
-----------
Apple documentation is wrong; this change is only dependent on OS version.
Don't use +initialize in a category, as it's unsafe.
Modified Paths:
--------------
trunk/CIImage_BDSKExtensions.m
Modified: trunk/CIImage_BDSKExtensions.m
===================================================================
--- trunk/CIImage_BDSKExtensions.m 2007-11-02 19:28:42 UTC (rev 3135)
+++ trunk/CIImage_BDSKExtensions.m 2007-11-02 21:20:26 UTC (rev 3136)
@@ -42,16 +42,16 @@
@implementation CIImage (BDSKExtensions)
-static NSString *startColorKey = nil;
-static NSString *endColorKey = nil;
+static NSString *startColorKey = @"inputColor0";
+static NSString *endColorKey = @"inputColor1";
-+ (void)initialize {
- OBINITIALIZE;
++ (void)load {
- // @@ Leopard: change this when compiling against 10.5 SDK
- // in Tiger the input colors are reversed
- startColorKey = [@"inputColor1" retain];
- endColorKey = [@"inputColor0" retain];
+ if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_4) {
+ // in Tiger the input colors are backwards
+ startColorKey = @"inputColor1";
+ endColorKey = @"inputColor0";
+ }
}
+ (CIImage *)imageWithConstantColor:(CIColor *)color;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit