Skip to content

Instantly share code, notes, and snippets.

@jdewind
Created April 26, 2011 15:22
Show Gist options
  • Save jdewind/942474 to your computer and use it in GitHub Desktop.
Save jdewind/942474 to your computer and use it in GitHub Desktop.
@interface ObjectionProvider : NSObject {
}
- (id)getObject:(Class)theClass;
@end
@implementation ObjectionProvider
objection_register_singleton(ObjectionProvider)
- (id)getObject:(Class)theClass {
return [[Objection globalInjector] getObject:theClass];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment