• 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: Strings from UUID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strings from UUID


  • Subject: Re: Strings from UUID
  • From: Vince DeMarco <email@hidden>
  • Date: Fri, 9 Aug 2002 15:04:55 -0700

On Friday, August 9, 2002, at 10:32 AM, Jeremy Dronfield wrote:

Could someone show me a reliable way (with code example if poss) of
creating a UUID, turning it into a CString, then into an NSString.

I tried to RTFM, but the F thing was F incomprehensible.


CFUUIDRef UIDRef;
NSString *uidString;

UIDRef = CFUUIDCreate(NULL);
uidString = (NSString *)CFUUIDCreateString(NULL, UIDRef);
CFRelease(UIDRef);

So stuff with uidString then release it

vince
_______________________________________________
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: 
 >Strings from UUID (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: Further GUI wrapper problems
  • Next by Date: Re: Newbie Questions About Methods and Messages
  • Previous by thread: Re: Strings from UUID
  • Next by thread: Acceptable bit-depths for NSImageBitmapRep
  • Index(es):
    • Date
    • Thread