Created
January 16, 2011 23:19
-
-
Save mike3k/782253 to your computer and use it in GitHub Desktop.
addObserver changed to use nil instead of self
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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