Re: Generating Unique ID
Re: Generating Unique ID
- Subject: Re: Generating Unique ID
- From: G Douglas Davidson <email@hidden>
- Date: Thu, 4 Sep 2003 11:39:54 -0400
Perfect!
Thanks to j o a r and Stiphane.
On Thursday, September 4, 2003, at 11:34 AM, j o a r wrote:
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.
--
G. Douglas Davidson | CityNet, Inc.
email@hidden | Pittsburgh, PA
voice: 412.481.5406 | fax: 412.431.1315
_______________________________________________
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.