I have the following bit of code in one of my methods:
...
NSNumber *selectedRecordID = [NSNumber numberWithInt:ABRecordGetRecordID(person)];
for (NSManagedObject *managedObject in fetchedResultsController.fetchedObjects) {
if (selectedRecordID == managedObject.contactID) {
}
The specified line generates a compiler error "Request for" contactID "in something that is not a structure or union." However, the "contactID" is an attribute of the objects received by the recipient of the results, and is present in the @property ads generated by Core Data.
What am I missing here? Thanks in advance for any help you can give.
source
share