Skip to content

Instantly share code, notes, and snippets.

@matzino
matzino / ExampleClass.m
Created July 9, 2012 16:42 — forked from lukeredpath/ExampleClass.m
Macro for creating your "shared instance" using GCD
@implementation MySharedThing
+ (id)sharedInstance
{
DEFINE_SHARED_INSTANCE_USING_BLOCK(^{
return [[self alloc] init];
});
}
@end