Re: unique ids
Re: unique ids
- Subject: Re: unique ids
- From: Scott Anguish <email@hidden>
- Date: Sat, 29 Nov 2003 02:58:45 -0500
have a look at the cf uuid functions
http://developer.apple.com/documentation/CoreFoundation/Reference/
CFUUIDRef/index.html#//apple_ref/doc/uid/20001207
CFUUIDRef myUUID;
CFStringRef myUUIDString;
char strBuffer[100];
myUUID = CFUUIDCreate(kCFAllocatorDefault);
myUUIDString = CFUUIDCreateString(kCFAllocatorDefault, myUUID);
myUUIDString is castable to an NSString
also, bill cheeseman has a framework for this (which may also be
overkill for your needs)...
On Nov 29, 2003, at 1:30 AM, Matthew Johnson wrote:
I am wondering what the best way is to generate globally unique ids in
cocoa. I have seen oid in the omni frameworks, but don't really want
to bring in the entire framework just for that. Is there anything
simpler that will provide globally unique ids?
_______________________________________________
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.
References: | |
| >unique ids (From: Matthew Johnson <email@hidden>) |