UUIDãçæãã
ã¡ãã£ã¨åã«é«æ¨ããã¨ã½ãããã³ã°ã¢ãã¤ã«ã®CTOã¨ã®ã¨twitterä¸ã§ã®è©±ã§ãã»ãã¥ãªãã£çã«æ£ããæ¹æ³ã¯ããã¤ã¹ã®UDIDã使ãã®ã§ã¯ç¡ãã¢ããªã®ååèµ·åæã«ã©ã³ãã ãªæååãçæããããããã¼ã¨ãã¹ããã¨ã®è©±ãããã¾ããã
é«æ¨æµ©å ï¼ èªå® ã®æ¥è¨ - ä»ããã±ã¼ã¿ã¤IDåé¡ã®è§£æ±ºã«åãã¦
http://takagi-hiromitsu.jp/diary/20100619.html#p01
ã©ã³ãã ãªæååã¨è¨ãã°UUID(Universally Unique Identifier)ããªã¨æãiPhoneã§ã®çææ¹æ³ã調ã¹ãã¨ãã CFUUID ã¨ããã¯ã©ã¹ã使ãã°ä½æåºæ¥ãã¿ããã§ããã
CFUUID Reference
http://developer.apple.com/iphone/library/documentation/CoreFoundation/Reference/CFUUIDRef/Reference/reference.html#//apple_ref/c/func/CFUUIDCreate
ãµã³ãã«ãªãããªï¼ã¨æ¢ããã¨ãããMacåãã§ãããµã³ãã«ãä½ããã¦ãæ¹ãçºè¦!!
(æ§) Cocoaã®æ¥ã : UUID ãä½ã - CFUUIDCreate 㨠globallyUniqueString
http://xcatsan.blogspot.com/2009/11/uuid-cfuuidcreate-globallyuniquestring.html
ãã®ãµã¤ããåèã«(ã»ã¨ãã©ãã®ã¾ã¾ã§ãã(^_^;))以ä¸ã®æ§ãªæãã§ä½æãã¾ããã
ããã¸ã§ã¯ãå
¨ä½ã確èªãããæ¹ã¯こちらããããã°ã©ã ãDLãã¦ä¸ããã
- (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]]; }
é¢é£æ å ±
ä»ã®ç°å¢ã¸ã®ç§»æ¤æ§ãæ°ã«ãªãæ¹ã¯ä»£ããã«Wikipediaã®UUIDã®é ç®ã«ç´¹ä»ããã¦ããC/C++ã®ã©ã¤ãã©ãªã使ãã®ãè¯ãã§ãããã
Universally Unique Identifier - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Uuid