Re: How to create a GUID?
Re: How to create a GUID?
- Subject: Re: How to create a GUID?
- From: "I. Savant" <email@hidden>
- Date: Sat, 6 Sep 2008 20:06:44 -0400
On Sep 6, 2008, at 7:06 PM, Finlay Dobbie wrote:
Why the unnecessary copy?
- (NSString *)uuid
{
CFUUIDRef uuidRef = CFUUIDCreate(NULL);
CFStringRef uuidStringRef = CFUUIDCreateString(NULL, uuidRef);
CFRelease(uuidRef);
return [(NSString *)uuidStringRef autorelease];
}
I didn't write or verify the code, but you appear to be absolutely
right. Maybe you'd like to update the wiki?
--
I.S.
_______________________________________________
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