NSDistantObject in Core Data
NSDistantObject in Core Data
- Subject: NSDistantObject in Core Data
- From: "Bridger Maxwell" <email@hidden>
- Date: Thu, 13 Nov 2008 00:53:42 -0700
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