Created
July 27, 2011 09:32
-
-
Save beelsebob/1109007 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSString *)uuidString | |
{ | |
CFUUIDRef uuid = CFUUIDCreateFromUUIDBytes(NULL, identityBytes); | |
CFStringRef str = CFUUIDCreateString(NULL, uuid); | |
CFMakeCollectable(str); | |
CFRelease(uuid); | |
return [(NSString *)str autorelease]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment