UUIDを生成する - 強火で進め
- (NSString*) stringWithUUID { CFUUIDRef uuidObj = CFUUIDCreate(nil);//create a new UUID //get the string representation of the UUID NSString *uuidString = (NSString*)CFUUIDCreateString(nil, uuidObj); CFRelease(uuidObj); return [uuidString autorelease]; } - (IBAction)createNewUuid { [uuidTextField setText:[self stringWithUUID]]; }