Updating ITFoundation to include updates spurred by Haven development.
[ITFoundation.git] / ITUUID.m
diff --git a/ITUUID.m b/ITUUID.m
new file mode 100644 (file)
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];
+}