• 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: How to create a GUID?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create a GUID?


  • Subject: Re: How to create a GUID?
  • From: Kirk Kerekes <email@hidden>
  • Date: Sun, 7 Sep 2008 20:19:05 -0500

@implementation NSString (KKUUIDString)

+ (NSString *) UUIDString
{
	CFUUIDRef UIDRef;
	NSString *uidString;
	UIDRef = CFUUIDCreate(NULL);
	uidString = (NSString *)CFUUIDCreateString(NULL, UIDRef);
	CFRelease(UIDRef);
	return [uidString autorelease];
}
@end

On Sep 7, 2008, at 5:43 PM, email@hidden wrote:

Message: 12
Date: Sun, 07 Sep 2008 12:57:26 -0500
From: Scott Ribe <email@hidden>
Subject: Re: How to create a GUID?
To: Klaus Backert <email@hidden>,
	<email@hidden>
Message-ID: <C4E98036.A2467%email@hidden>
Content-Type: text/plain;	charset="US-ASCII"

is
there any reason why this could not be implemented as a class method

It really *should* be a class method.

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

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


  • Prev by Date: Re: Interface Builder changing size of controls...
  • Next by Date: Using control:didFailToFormatString:errorDescription:
  • Previous by thread: Re: How to create a GUID?
  • Next by thread: Re: How to create a GUID?
  • Index(es):
    • Date
    • Thread