• 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: UUID method Garbage Collection safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >UUID method Garbage Collection safe? (From: Squ Aire <email@hidden>)
 >Re: UUID method Garbage Collection safe? (From: Julien Jalon <email@hidden>)
 >Re: UUID method Garbage Collection safe? (From: Keith Duncan <email@hidden>)
 >RE: UUID method Garbage Collection safe? (From: Squ Aire <email@hidden>)

  • Prev by Date: Re: UUID method Garbage Collection safe?
  • Next by Date: Re: Recording phone calls
  • Previous by thread: Re: UUID method Garbage Collection safe?
  • Next by thread: RE: UUID method Garbage Collection safe?
  • Index(es):
    • Date
    • Thread