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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to