Created
September 20, 2012 13:06
-
-
Save asparagui/3755784 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (ZCDataStore *)sharedStore | |
{ | |
static ZCDataStore *shared = nil; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
shared = [[super allocWithZone:nil] init]; | |
}); | |
return shared; | |
} | |
+ (id)allocWithZone:(NSZone *)zone | |
{ | |
return [self sharedStore]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment