When you use whereKey:notContainedIn:
, the key
should be a field on your Employee
. If you're following naming conventions, what you've actually supplied is the object name itself. And it looks like you supply an array of objects. You should have an identity
field (or something similar) and and you should be supplying an array of identities to whereKey:notContainedIn:
. You can get the array of identities with:
NSArray *identities = [currentEmployees valueForKey:@"identity"];
(substitute the appropriate filed name in place of identity
)