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 man

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 applic

Re: NSDistantObject in Core Data

2008-11-13 Thread Sebastian Morsch
Hi, I can't answer your first question, but concerning your second one: check out NSPropertyDescription isTransient:. However, this applies to properties, not entities. I don't think entities can be transient in the true meaning of the word. But if all properties of an entity are transient