Skip to content

Instantly share code, notes, and snippets.

@jonsterling
Created May 31, 2010 04:41
Show Gist options
  • Select an option

  • Save jonsterling/419542 to your computer and use it in GitHub Desktop.

Select an option

Save jonsterling/419542 to your computer and use it in GitHub Desktop.
- (void)didWobble:(NSNotification *)notification;
[[NSNotificationCenter defaultCenter]
postNotificationName:JSAutoWibblerDidWobbleNotification
object:self];
[[NSNotificationCenter defaultCenter]
postNotificationName:JSAutoWibblerDidWobbleNotification
object:self
userInfo:dict];
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(didWobble:)
name:JSAutoWibblerDidWobbleNotification
object:someWibbler];
extern NSString * const JSAutoWibblerDidWobbleNotification;
extern NSString * const JSAutoWibblerDidWeebleNotification;
NSString * const JSAutoWibblerDidWobbleNotification
= @"JSAutoWibblerDidWobbleNotification";
NSString * const JSAutoWibblerDidWeebleNotification
= @"JSAutoWibblerDidWeebleNotification";
[[NSNotificationCenter defaultCenter] removeObserver:self];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment