Skip to content

Instantly share code, notes, and snippets.

@threeve
Created October 11, 2010 21:12
Show Gist options
  • Save threeve/621241 to your computer and use it in GitHub Desktop.
Save threeve/621241 to your computer and use it in GitHub Desktop.
@implementation MyClass
+ (NSMutableDictionary*)storage
{
static NSMutableDictionary *theDict = nil;
if (theDict == nil)
theDict = [[NSMutableDictionary alloc] init];
return theDict;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment