Skip to content

Instantly share code, notes, and snippets.

@joannes7
Created December 12, 2013 17:39
Show Gist options
  • Save joannes7/7932084 to your computer and use it in GitHub Desktop.
Save joannes7/7932084 to your computer and use it in GitHub Desktop.
//I also found that you can do:
//To register for change events:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_handleWhateverChange) name:@"whateverChange" object:nil];
//To fire them. I might be a N00b but I just couldn't get the observer for key path thing to work for me.
[[NSNotificationCenter defaultCenter] postNotificationName:@"whateverChange" object:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment