• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Globaly unique NSManagedObjectID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Globaly unique NSManagedObjectID (some answers)
      • From: Alexander Lamb <email@hidden>
References: 
 >MVC Alternatives? (From: Jonathan Faulkenberry <email@hidden>)
 >Re: MVC Alternatives? (From: Marco Scheurer <email@hidden>)
 >Globaly unique NSManagedObjectID (From: Alexander Lamb <email@hidden>)
 >Re: Globaly unique NSManagedObjectID (From: Matt Emerson <email@hidden>)
 >Re: Globaly unique NSManagedObjectID (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Help me interpret this initWithBytes/memcpy crash log?
  • Next by Date: Re: hey, who took away nested functions?
  • Previous by thread: Re: Globaly unique NSManagedObjectID
  • Next by thread: Re: Globaly unique NSManagedObjectID (some answers)
  • Index(es):
    • Date
    • Thread