• 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
UUID method Garbage Collection safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UUID method Garbage Collection safe?


  • Subject: UUID method Garbage Collection safe?
  • From: Squ Aire <email@hidden>
  • Date: Wed, 22 Jul 2009 16:45:57 +0000
  • Importance: Normal

I've been using this method to make UUID strings:

+ (NSString *)stringWithUUID{  CFUUIDRef uuidObj = CFUUIDCreate(nil);    NSString *uuidString = (NSString*)CFUUIDCreateString(nil,uuidObj);  CFRelease(uuidObj);  return [uuidString autorelease];}

How do you all like it? Is it ok? It's based on some code I Googled a while back. In particular, is this code perfectly garbage collection safe?
_________________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/products/events.aspx_______________________________________________

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

  • Follow-Ups:
    • Re: UUID method Garbage Collection safe?
      • From: Julien Jalon <email@hidden>
  • Prev by Date: NSSlider with multiple values?
  • Next by Date: Re: UUID method Garbage Collection safe?
  • Previous by thread: NSSlider with multiple values?
  • Next by thread: Re: UUID method Garbage Collection safe?
  • Index(es):
    • Date
    • Thread