Core Data: Keypath “objectID” not found in entity

后端 未结 1 544
北荒
北荒 2021-01-17 11:47

I\'m using NSFetchedResultsController with a predicate to load a list of Documents in my application. I want to load all the Documents

相关标签:
1条回答
  • 2021-01-17 12:30

    Change your predicate to read

    [NSPredicate predicateWithFormat:@"self != %@", [self currentDoc]]
    

    Where currentDoc is a reference to the instance of the NSManagedObject that represents the current document.

    Core Data will do the equality check internally.

    0 讨论(0)
提交回复
热议问题