Revision: 2726
http://skim-app.svn.sourceforge.net/skim-app/?rev=2726&view=rev
Author: hofman
Date: 2007-08-27 05:57:56 -0700 (Mon, 27 Aug 2007)
Log Message:
-----------
Make camera cursor static variable.
Modified Paths:
--------------
trunk/NSCursor_SKExtensions.m
Modified: trunk/NSCursor_SKExtensions.m
===================================================================
--- trunk/NSCursor_SKExtensions.m 2007-08-27 12:00:17 UTC (rev 2725)
+++ trunk/NSCursor_SKExtensions.m 2007-08-27 12:57:56 UTC (rev 2726)
@@ -96,11 +96,11 @@
}
+ (NSCursor *)cameraCursor {
- NSCursor *cameraCursor = nil;
-
- if (cameraCursor == nil)
- cameraCursor = [[NSCursor alloc] initWithImage:[NSImage
imageNamed:@"CameraCursor"] hotSpot:NSMakePoint(8.0, 8.0)];
-
+ static NSCursor *cameraCursor = nil;
+ if (nil == cameraCursor) {
+ NSImage *cursorImage = [[[NSImage imageNamed:@"CameraCursor"] copy]
autorelease];
+ cameraCursor = [[NSCursor alloc] initWithImage:cursorImage
hotSpot:NSMakePoint(8.0, 8.0)];
+ }
return cameraCursor;
}
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