Skip to content

Instantly share code, notes, and snippets.

@mike3k
Created January 16, 2011 23:19
Show Gist options
  • Save mike3k/782253 to your computer and use it in GitHub Desktop.
Save mike3k/782253 to your computer and use it in GitHub Desktop.
addObserver changed to use nil instead of self
- (void)addObserver:(id)obj forSelector:(SEL)selector success:(SEL)success failure:(SEL)failure {
[[NSNotificationCenter defaultCenter] addObserver:obj selector:success name:[self successNotificationNameForSelector:selector] object:nil];
[[NSNotificationCenter defaultCenter] addObserver:obj selector:failure name:[self failureNotificationNameForSelector:selector] object:nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment