• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: unique ids
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: unique ids
      • From: Bill Cheeseman <email@hidden>
References: 
 >unique ids (From: Matthew Johnson <email@hidden>)

  • Prev by Date: Application Icon Using Panther
  • Next by Date: NSURLs and timeouts
  • Previous by thread: unique ids
  • Next by thread: Re: unique ids
  • Index(es):
    • Date
    • Thread