Re: Globaly unique NSManagedObjectID
Re: Globaly unique NSManagedObjectID
- Subject: Re: Globaly unique NSManagedObjectID
- From: Alexander Lamb <email@hidden>
- Date: Thu, 5 Jan 2006 20:09:36 +0100
Well from the documentation:
A managed object ID uniquely identifies the same managed object both
between managed object contexts in a single application, and in
multiple applications (as in distributed systems).
So it IS globaly unique. The problem is:
- does it contain a reference to its data store
- how do I store an object with a unique ID coming from another store
in a second store (as in distributed systems)
--
Alexander Lamb
email@hidden
On Jan 5, 2006, at 7:24 PM, I. Savant wrote:
In addition to (or to supplement) Matt's advice, you may want to
check this out:
http://www.cocoadev.com/index.pl?IDentifiers
--
I.S.
On Jan 5, 2006, at 1:15 PM, Matt Emerson wrote:
On Jan 5, 2006, at 5:49 AM, Alexander Lamb wrote:
I would like to send objects (NSManagedObjects or subclasses)
from one process to another. Each process being a CoreData
application with it's own data store.
I understand that once an object is persistant it gets an
NSManagedObjectID. This ID is globally unique.
I believe that an NSManagedObjectID is unique only within its
persistent store.
It sounds like you might want to add an ID attribute of your own
to your objects.
-matt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden