Source

BWToolkit / NSString+BWAdditions.m

Full commit
Brandon Walkin 982b4c4 



Brandon Walkin 4a9d143 

Brandon Walkin 982b4c4 





Brandon Walkin 100e138 
Brandon Walkin 982b4c4 

Brandon Walkin e173265 
Brandon Walkin 982b4c4 




//
//  NSString+BWAdditions.m
//  BWToolkit
//
//  Created by Brandon Walkin (www.brandonwalkin.com)
//  All code is provided under the New BSD license.
//

#import "NSString+BWAdditions.h"

@implementation NSString (BWAdditions)

+ (NSString *)bwRandomUUID
{
	CFUUIDRef uuidObj = CFUUIDCreate(nil);
	NSString *newUUID = (NSString*)CFMakeCollectable(CFUUIDCreateString(nil, uuidObj));
	CFRelease(uuidObj);
	
	return [newUUID autorelease];
}

@end