Re: NSDistantObject in Core Data

2008-11-14 Thread Bridger Maxwell
One answer is to use a transient attribute to represent the relationship. Set the attribute's kind to Undefined, and use a custom NSManagedObject subclass. Define an instance variable in the subclass to hold the actual NSDistantObject pointer, and write custom accessors to get and manipulate

Re: NSDistantObject in Core Data

2008-11-13 Thread Sebastian Morsch
are transient, it probably has the same effect. Best, Sebastian Am 13.11.2008 um 08:53 schrieb Bridger Maxwell: Hey, I am creating a server in which I would like to somehow add a relationship to an NSDistantObject in my Core Data object graph. I know NSDistantObjects can't be archived. I will have

Re: NSDistantObject in Core Data

2008-11-13 Thread Quincey Morris
On Nov 12, 2008, at 23:53, Bridger Maxwell wrote: I am creating a server in which I would like to somehow add a relationship to an NSDistantObject in my Core Data object graph. I know NSDistantObjects can't be archived. I will have an an array of all of the live NSDistantObjects in my

NSDistantObject in Core Data

2008-11-12 Thread Bridger Maxwell
Hey, I am creating a server in which I would like to somehow add a relationship to an NSDistantObject in my Core Data object graph. I know NSDistantObjects can't be archived. I will have an an array of all of the live NSDistantObjects in my application, I just need to relate them to entities