Skip to content

Instantly share code, notes, and snippets.

@robinhayward
Created October 11, 2012 12:06
Show Gist options
  • Save robinhayward/3871895 to your computer and use it in GitHub Desktop.
Save robinhayward/3871895 to your computer and use it in GitHub Desktop.
#import "NSNotificationCenter+RHKit.h"
@implementation NSNotificationCenter (RHKit)
- (void)addUniqueObserver:(id)observer selector:(SEL)aSelector name:(NSString *)aName object:(id)anObject {
[self removeObserver:observer name:aName object:anObject];
[self addObserver:observer selector:aSelector name:aName object:anObject];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment