Skip to content

Instantly share code, notes, and snippets.

@webdevotion
Created November 28, 2012 12:13
Show Gist options
  • Save webdevotion/4160825 to your computer and use it in GitHub Desktop.
Save webdevotion/4160825 to your computer and use it in GitHub Desktop.
Sharedstore
+ (WDPProductStore *)sharedStore
{
static dispatch_once_t once;
static WDPProductStore *__sharedStore;
dispatch_once(&once, ^ { __sharedStore = [[WDPProductStore alloc] init]; });
return __sharedStore;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment