Re: UUID method Garbage Collection safe?
Re: UUID method Garbage Collection safe?
- Subject: Re: UUID method Garbage Collection safe?
- From: Jim Correia <email@hidden>
- Date: Wed, 22 Jul 2009 16:01:06 -0400
On Jul 22, 2009, at 3:42 PM, Squ Aire wrote:
Yes I was aware of this method. However, according to the docs it
only guarantees uniqueness for a given process, and doesn't
guarantee it will be "globally" unique, if you know what I mean.
Thanks for the suggestion though.
The documentation for -[NSProcessInfo globallyUniqueString] does
guarantee that the string will be globally unique. (The word global is
right in the name.)
What it it doesn't guarantee, though, is that it will give you back a
UUID string (which is generally meant to be a specific kind of
globally unique string.)
-globallyUniqueString returns UUID strings today, but this wasn't
always true. (And since it isn't guaranteed by the docs, may not be
true in the future.)
If you specifically need a UUID string, you should probably use CFUUID.
- Jim
_______________________________________________
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