• 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: Generating Unique ID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generating Unique ID


  • Subject: Re: Generating Unique ID
  • From: j o a r <email@hidden>
  • Date: Thu, 4 Sep 2003 17:34:31 +0200

Something like this perhaps:

+ (NSString *) uniqueString
{
CFUUIDRef uuid = CFUUIDCreate(NULL);
NSString *uString = (NSString *)CFUUIDCreateString(NULL, uuid);
CFRelease(uuid);
return [uString autorelease];
}

j o a r

On torsdag, september 4, 2003, at 05:14 PM, G Douglas Davidson wrote:

I'd like to tag all of my Object/Records with a Unique ID not tied to the data in any way and unique across objects. I remember seeing something in Apple's documentation about some function that produced this Unique number (does not have to be across machines.) But I can't seem to find it.

If someone can point me in the right direction, I would appreciate it.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Generating Unique ID
      • From: G Douglas Davidson <email@hidden>
References: 
 >Generating Unique ID (From: G Douglas Davidson <email@hidden>)

  • Prev by Date: RE: Subclassing dictionaries?
  • Next by Date: Re: Generating Unique ID
  • Previous by thread: Generating Unique ID
  • Next by thread: Re: Generating Unique ID
  • Index(es):
    • Date
    • Thread