Re: UUID Generation in Cocoa
Re: UUID Generation in Cocoa
- Subject: Re: UUID Generation in Cocoa
- From: Vince DeMarco <email@hidden>
- Date: Sun, 19 Jan 2003 11:48:26 -0800
On Saturday, January 18, 2003, at 08:37 PM, Joseph Jones wrote:
Is there a set of API's or objects in Cocoa that generate and work
with UUIDs? After a LONG while of digging around I located Carbon APIs
for this, but I'd like to stick to Obj C and Cocoa as much as > possible.
you have to call the CoreFoundation function
- (NSString *)uuid
{
CFUUIDRef UIDRef;
NSString *uidString;
UIDRef = CFUUIDCreate(NULL);
uidString = (NSString *)CFUUIDCreateString(NULL, UIDRef);
CFRelease(UIDRef);
return [uidString autorelease];
}
_______________________________________________
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.