• 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: CFUUID question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFUUID question


  • Subject: Re: CFUUID question
  • From: Philip Mobley <email@hidden>
  • Date: Wed, 28 Apr 2010 13:15:50 -0700

On Apr 28, 2010, at 12:49 PM, Douglas Davidson wrote:

>> Is my assumption correct that the CFUUID class only generates RANDOM UUID values?  (i.e. UUID version 4)
>>
>> I am interested in creating a reproducible UUID based on a string input value (such as UUID version 3 or 5), and this doesn't seem possible with CFUUID.
>
> CFUUIDCreate() generates a new random UUID.  CFUUIDCreateWithBytes() and CFUUIDCreateFromString() create CFUUID objects based on existing values.

From my understanding of the documentation, both of these functions are only to create a CFUUID object based on either raw bytes or a string format of an EXISTING UUID.

MD5 is more of what I am looking for, but in the UUID format to avoid the MD5 collisions.  For example a new UUID based on something like [NSString stringWithFormat:@"%@%@%@", machineUUID, [game description], [player name]].   The resulting UUID could be generated at any time given the source key value, but the source key would not be exposed within the UUID.

_______________________________________________

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: CFUUID question
      • From: Jens Alfke <email@hidden>
References: 
 >CFUUID question (From: Philip Mobley <email@hidden>)
 >Re: CFUUID question (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Archiving NSBlockPredicate and NSPredicate date functions
  • Next by Date: Re: Cocoa Newbie & MySQL
  • Previous by thread: Re: CFUUID question
  • Next by thread: Re: CFUUID question
  • Index(es):
    • Date
    • Thread