Re: Generating Unique ID
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.