Revision: 11125
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11125&view=rev
Author: amaxwell
Date: 2007-09-22 10:17:55 -0700 (Sat, 22 Sep 2007)
Log Message:
-----------
cache constant CIColor
Modified Paths:
--------------
trunk/bibdesk/CIImage_BDSKExtensions.m
Modified: trunk/bibdesk/CIImage_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/CIImage_BDSKExtensions.m 2007-09-22 13:59:01 UTC (rev
11124)
+++ trunk/bibdesk/CIImage_BDSKExtensions.m 2007-09-22 17:17:55 UTC (rev
11125)
@@ -246,7 +246,10 @@
+ (CIColor *)clearColor;
{
- return [self colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0];
+ static CIColor *color = nil;
+ if (nil == color)
+ color = [[self colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0] retain];
+ return color;
}
@end
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit