Skip to content

Instantly share code, notes, and snippets.

@joshaber
Forked from tonyarnold/gist:3091496
Created July 11, 2012 16:18
Show Gist options
  • Save joshaber/3091511 to your computer and use it in GitHub Desktop.
Save joshaber/3091511 to your computer and use it in GitHub Desktop.
[[[NSUserDefaults standardUserDefaults] rac_subscribableForKeyPath:@"MyUserDefault" onObject:self] subscribeNext:^(id x) {
NSLog(@"%@", x);
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment