Skip to content

ZSContextWatcher implementation question #5

@andrewstephenson-v1

Description

@andrewstephenson-v1
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions