Skip to content

Instantly share code, notes, and snippets.

@tonyarnold
Created July 11, 2012 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tonyarnold/3091496 to your computer and use it in GitHub Desktop.
Save tonyarnold/3091496 to your computer and use it in GitHub Desktop.
[[self rac_subscribableForKeyPath:@"MyUserDefault" onObject:[NSUserDefaults standardUserDefaults]] subscribeNext:^(id x) {
NSLog(@"%@", x);
}];
@tonyarnold
Copy link
Author

Wait, wait, wait:

[[[NSUserDefaults standardUserDefaults] rac_subscribableForKeyPath:kDWKUserDefaultRequirePasscodeToUnlockKey onObject:self] subscribeNext:^(id x) {…}];

This works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment