Skip to content

Instantly share code, notes, and snippets.

@robreuss
Created February 25, 2013 20:51
Show Gist options
  • Save robreuss/5033168 to your computer and use it in GitHub Desktop.
Save robreuss/5033168 to your computer and use it in GitHub Desktop.
singleton
+ (id)sharedInstance
{
static dispatch_once_t onceQueue;
static DoDServer *server = nil;
dispatch_once(&onceQueue, ^{ juxUtilities = [[self alloc] init]; });
return server;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment