Re: Hardware Addressing
Re: Hardware Addressing
- Subject: Re: Hardware Addressing
- From: Sarwat Khan <email@hidden>
- Date: Wed, 15 Aug 2001 20:31:57 -0400
You could probably use the routines in CFUUID.h, part of CoreFoundation.
I'm guessing you would do it like this,
#import <CoreFoundation/CFUUID.h>
....
- (NSString*) blah
{
CFUUIDRef myUUID;
CFStringRef cfString;
myUUID = CFUUIDCreate(NULL);
cfString = CFUUIDCreateString(myUUID);
//you can use a CFString as if it were an NSString object
CFRelease(myUUID);
return [cfString autorelease];
}