Skip to content

Instantly share code, notes, and snippets.

@nickjs
Created October 28, 2010 15:42
Show Gist options
  • Select an option

  • Save nickjs/651618 to your computer and use it in GitHub Desktop.

Select an option

Save nickjs/651618 to your computer and use it in GitHub Desktop.
var SharedController;
@implementation MyController : CPObject
{
}
+ (MyController)sharedController
{
if (!SharedController)
SharedController = [[MyController alloc] init];
return SharedController;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment