Re: On NSIncrementalStore UUID Uniqueness
Re: On NSIncrementalStore UUID Uniqueness
- Subject: Re: On NSIncrementalStore UUID Uniqueness
- From: Keary Suska <email@hidden>
- Date: Wed, 11 Jan 2017 13:58:52 -0700
> On Jan 11, 2017, at 11:16 AM, Jens Alfke <email@hidden> wrote:
>
>
>> On Jan 10, 2017, at 2:00 PM, Jean-Daniel <email@hidden> wrote:
>>
>> UUID means Universally unique identifier and it must be unique: https://en.wikipedia.org/wiki/UUID <https://en.wikipedia.org/wiki/UUID><https://en.wikipedia.org/wiki/UUID <https://en.wikipedia.org/wiki/UUID>>
>> To generate an UUID, use a standard system function (CFUUID, NSUUID, libuuid, …)
>
> This is not what I believe Daryle was asking, and it’s sent everyone off on a tangent about what UUIDs are.
>
> My interpretation of the original question: Is an NSIncrementalStore’s UUID scoped to the specific database, or is it scoped to that _implementation_ of the store? That is, is the UUID generated at runtime or at compile time?
>
> I don’t know the answer; just hoping to get the discussion back on track :)
The docs say:
"A unique identifier for the store at the given URL. It must be uniquely and reproducibly derivable, such that multiple instances of your store return the same UUID”
My reading is that the store UUID would be unique to a specific database since it is only unique to the URL location of the store. I thin the docs use “instance” in a strictly OOP sense.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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