• 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: Seeking clarification on NSManagedObjectID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Seeking clarification on NSManagedObjectID


  • Subject: Re: Seeking clarification on NSManagedObjectID
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 6 Nov 2007 10:50:02 -0500

> After reviewing the Core Data documentation the following is not clear
> to me: If a managed object is deleted, is there a chance that its
> object ID will be subsequently reused?

http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/index.html#//apple_ref/doc/uid/TP40001075

"An NSManagedObjectID object is a universal identifier for a managed
object, and provides basis for uniquing in the Core Data Framework. 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). Like the primary
key in the database, an identifier contains the information needed to
exactly describe an object in a persistent store ..."

  With wording like "the basis for uniquing", and "like the primary
key in the database", I take this to mean an ID is never reused.
Further, I believe they use UUIDs so it's unlikely you'd ever be
*able* to get the same ID generated for a managed object.

--
I.S.
_______________________________________________

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

  • Follow-Ups:
    • Re: Seeking clarification on NSManagedObjectID
      • From: David Spooner <email@hidden>
References: 
 >Seeking clarification on NSManagedObjectID (From: David Spooner <email@hidden>)

  • Prev by Date: Re: How to notify of an error...
  • Next by Date: Re: Seeking clarification on NSManagedObjectID
  • Previous by thread: Seeking clarification on NSManagedObjectID
  • Next by thread: Re: Seeking clarification on NSManagedObjectID
  • Index(es):
    • Date
    • Thread