X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/6262c31ef1f3b4c4cec3e909f0ecc189eb242ab2..744612b5d258474e367710b870a5caaed7d11ab9:/ITUUID.m diff --git a/ITUUID.m b/ITUUID.m new file mode 100644 index 0000000..6e6f8e1 --- /dev/null +++ b/ITUUID.m @@ -0,0 +1,8 @@ +#import "ITUUID.h" + +NSString *ITUUID() { + CFUUIDRef newUUID = CFUUIDCreate(NULL); + CFStringRef string = CFUUIDCreateString(NULL, newUUID); + CFRelease(newUUID); + return [(NSString *)string autorelease]; +}