Revision: 4571
http://skim-app.svn.sourceforge.net/skim-app/?rev=4571&view=rev
Author: hofman
Date: 2008-09-07 10:58:54 +0000 (Sun, 07 Sep 2008)
Log Message:
-----------
Should have changed shared instance method rather than allocWithZone
Modified Paths:
--------------
trunk/SKBookmarkController.m
Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m 2008-09-07 10:22:16 UTC (rev 4570)
+++ trunk/SKBookmarkController.m 2008-09-07 10:58:54 UTC (rev 4571)
@@ -106,13 +106,13 @@
static SKBookmarkController *sharedBookmarkController = nil;
+ (id)sharedBookmarkController {
- return sharedBookmarkController ?: [[self alloc] init];
+ if (sharedBookmarkController == nil)
+ [[self alloc] init];
+ return sharedBookmarkController;
}
+ (id)allocWithZone:(NSZone *)zone {
- if (sharedBookmarkController == nil)
- [super allocWithZone:zone];
- return sharedBookmarkController;
+ return sharedBookmarkController ?: [super allocWithZone:zone];
}
- (id)init {
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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit