Mapping to an NSManagedObject subobject's computed properties (or other non-@NSManaged properties)

53 views
Skip to first unread message

andrew...@gmail.com

unread,
Dec 21, 2014, 12:32:37 AM12/21/14
to res...@googlegroups.com
I need to store a property of a class in the keychain rather than inside of Core Data. My idea was to use a computed property (of the NSManagedObject subclass that the Core Data entity corresponds to) to handle getting & setting and simply leave that field out of the the Core Data model. However, the RKEntityMapping gets somewhat upset when it cannot find the attribute in the Core Data entity and I do not see a way to tell it what's going on. Is my best option to mark it as a transient property and use KVO to set and read it?

Mihai Timar

unread,
Jan 30, 2015, 8:32:28 AM1/30/15
to res...@googlegroups.com
You don't mention the assert/error, so just a guess: your computed property is somehow not kvc compliant. It should work otherwise. Anyway, having a transient might be nicer so CD also knows what to do with it.
Reply all
Reply to author
Forward
0 new messages