Re: NSDistantObject in Core Data
Re: NSDistantObject in Core Data
- Subject: Re: NSDistantObject in Core Data
- From: Sebastian Morsch <email@hidden>
- Date: Thu, 13 Nov 2008 09:47:54 +0100
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, 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 an an array of all of the live
NSDistantObjects in my application, I just need to relate them to
entities
in Core Data. Perhaps NSDistantObject instances have a unique
identifier I
can store in the data graph and use as a key to retrieve the live
instance?
For this I have considered the hash function or using the actual
pointer
value. However, I am not sure if either are very safe.
On a related note, I obviously wouldn't want these references to
NSDistantObjects to be saved to the persistent store. Is there a way
to mark
an entity in Core Data as temporary so they are not saved or restored?
Thank You,
Bridger Maxwell
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden