Google Toolbox for Macã使ã£ã¦ã¿ã
ã¡ãã£ã¨åºé ããæãããã¾ããåã®ãGoogle Toolbox for Macãã触ã£ã¦ã¿ã¾ããã
ãGoogle Toolbox for Macãã«ã¤ãã¦ã¯ãã¡ã
GoogleããMacãããããã¸ã®è´ãç©ãGoogle Toolbox for Macã | ãã½ã³ã³ | ãã¤ã³ãã¸ã£ã¼ãã«
http://journal.mycom.co.jp/news/2008/02/01/024/index.html
Google Toolbox for Mac
http://kirika.la.coocan.jp/cocoa/3rdlib/google/toolbox/foundation.html
ã¨ãããã以ä¸ã® Google Code ãã google-toolbox-for-mac-1-5-1.zip ããã¦ã³ãã¼ãã
google-toolbox-for-mac - Google Code
http://code.google.com/p/google-toolbox-for-mac/
ãããã¸ã§ã¯ãã-ãã¢ã¯ãã£ããªãã«ãæ§æãè¨å®ã-ãTigerOrLater-Releaseãã«å¤æ´ãããã«ãã
ããã¾ã§é²ããã¨ããã§æ¨æºã®Framework以å¤ã®ä½¿ãæ¹ãç¥ããªãã£ãã®ã§ä½¿ãæ¹ã以ä¸ã®ãµã¤ãã§ãã§ãã¯ãããªãã¨ã使ç¨ã§ããæ§ã«ãªãã¾ããã
Use framework - Programming Room - Mac OS X
http://variousible.sakura.ne.jp/Apple/Creating/Tools/Xcode-useFramework.html
æ©éãBase64ã¨ã³ã³ã¼ãã®ã©ã¤ãã©ãªã使ã£ã¦ã¿ã¾ããã
ã¦ã£ã³ãã¦ã«ãã¿ã³ãé
ç½®ããã¢ã¯ã·ã§ã³ã«ä»¥ä¸ã®æ§ãªããã°ã©ã ãè¨å®ãã¾ããã
#import "AppController.h" #import "GoogleToolboxForMac/GTMBase64.h" @implementation AppController - (IBAction)run:(id)sender { NSString *str; str = [NSString stringWithString:@"TEST"]; NSLog(@"--Asciiæåã ãã®ã¨ã"); NSLog(@"Ascii :%@", [GTMBase64 stringByEncodingData:[str dataUsingEncoding:NSASCIIStringEncoding]]); str = [NSString stringWithString:@"TESTæåå"]; NSLog(@"--æ¥æ¬èªãå«ãæåå"); NSLog(@"Ascii :%@", [GTMBase64 stringByEncodingData:[str dataUsingEncoding:NSASCIIStringEncoding]]); NSLog(@"EUC-JP:%@", [GTMBase64 stringByEncodingData:[str dataUsingEncoding:NSJapaneseEUCStringEncoding]]); NSLog(@"UTF :%@", [GTMBase64 stringByEncodingData:[str dataUsingEncoding:NSUTF8StringEncoding]]); } @end
æ¨æºã®Frameworkã使ãã¨ãã¿ããã«
#import "GoogleToolboxForMac/GoogleToolboxForMac.h"
ãã®ããã«æ¸ãã¦ãã¦ãã£ã¨ã¨ã©ã¼ã«ãªã£ã¦ã¡ãã£ã¨ãããã¾ãããããã¤ã¯ããããå¿ è¦ãªããããã¡ã¤ã«ã ãimportãã¦ä½¿ãã¿ããã§ãã
åºåçµæã¯ãããªæãããããªBase64ã«ãªã£ã¦ã¾ãã
--Asciiæåã ãã®ã¨ã Ascii :VEVTVA== --æ¥æ¬èªãå«ãæåå Ascii :(null) EUC-JP:VEVTVMq4u/rO8w== UTF :VEVTVOaWh+Wtl+WIlw==
æ¥æ¬èªãå«ãã æååãAsciiã ã¨è¨ãå¼µã£ã¦å®è¡ãã㨠null ã«ãªãã¿ããã§ãã
ä»ã«ãHTMLãXMLã®ãã¼ãµãããã¿ãããªã®ã§ãã¡ããè²ã ã¨ãã§ãã¯ããããã¨æã£ã¦ã¾ãã
ãã¨ã½ã¼ã¹ã«iPhoneç¨ã®Frameworkä½æç¨ã®ããã¸ã§ã¯ããå ¥ã£ã¦ããã¿ãããªã®ã§ãã¡ãiPhoneã§ã使ããããªæãã§ãã