Hello all,
I am adding a transient property to my Core Data-based app, and I think I am missing something. In the Data Model Editor, I added a optional
, transient
, BOOL
property called isUnderwater
.
In my model's header file, I added: @property (nonatomic) BOOL isUnderwater;
, then I implemented these methods in the implementation file:
- (BOOL)isUnderwater {
... implementation ...
return (ret);
}
- (void)setIsUnderwater:(BOOL)isUnderwater {}
But when I try to use isUnderwater
as a condition in a NSPredicate, I get this error: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'keypath isUnderwater not found in entity <NSSQLEntity Wheel id=2>'
.
Any ideas?
Thanks!