Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZSContextWatcher implementation question #5

Open
iOSDevil opened this issue Feb 10, 2013 · 0 comments
Open

ZSContextWatcher implementation question #5

iOSDevil opened this issue Feb 10, 2013 · 0 comments

Comments

@iOSDevil
Copy link

    ZSContextWatcher* watcher = [[ZSContextWatcher alloc] initWithManagedObjectContext:defaultContext];
    NSPredicate* predicate = [NSPredicate predicateWithFormat:@"email = %@", email];
    NSEntityDescription* entityDescription = [NSEntityDescription entityForName:@"Person" inManagedObjectContext:defaultContext];
    [watcher addEntityToWatch:entityDescription withPredicate:predicate];
    [watcher setAction:@selector(contextChangeObserved)]; // reload my UI

In an ARC project I've set ZSContextWatcher as -fno-objc-arc

My method is not firing, I must be doing something wrong.

Please advise, many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant