Pythonã§ä½ãiPhoneã¢ããª
åã«ã¡ãã£ã¨æ¸ããããã©ããã¡ã«ã¯IntelMacãç¡ããï¼PowerPCã®MacMiniãªãããããã©ãããï¼
ã¨è¨ããã¨ã¯ãAppleã®iPhone SDKã使ããªãããã§ãé常iPhoneã¢ããªã¯ä½ããªããSDKã¯ç¡æã§é
ã£ã¦ããããã©ãIntelMacè²·ãã®ã¯é«ããããã
ãããJailbreakããçç±ã®ä¸ã¤ã¯ãiPhoneã¢ããªãä½ã£ã¦è¦ããã£ãããã§ãããã
æ£æ»æ³ã§ã¯Windowsçã®æ¯è¦ã«ã¯ãã¹ã³ã³ãã¤ã«ç¨ã®toolchainãインストールãããããããã©ããã£ã¨å®æã«ã¹ã¯ãªããè¨èªãªããã§ä½ããªãããªããããã¨æã£ã¦Cydiaãããããè¦ã¦ããããiPhoneç¨Pythonãµãã¼ããã¤ã³ã¹ãã¼ã«ã§ããããã ã
ããã¯ãiPhoneã«Pythonæ¬ä½ãObject-Cããªãã¸ï¼PyObjcï¼ããµã³ãã«ã¢ããªã±ã¼ã·ã§ã³ï¼iphone-pythonããã±ã¼ã¸ï¼ãã¤ã³ã¹ãã¼ã«ãããã®ã§ãã¤ã³ã¹ãã¼ã«ããã¨ãã¹ããªã³ã°ãã¼ãï¼iPhoneã®ã¡ã¤ã³ç»é¢ï¼ã«ãHelloPythonãã¨è¨ãã¢ããªã±ã¼ã·ã§ã³ãåºã¦ããã
ãããã«ç«ã¡ä¸ãããªããã¯é
ãããã©ãã¾ããã¡ããã¨åãããã ãï¼sqliteãµãã¼ãã使ã£ã¦ãã¢ãã¬ã¹ããã¯ããå
¨å¡ã®ãªã¹ãã表示ããã ãã®ãã®ã ããã©ãï¼
è¦ãæãã½ã¼ã¹ã³ã¼ãã¯/Applications/HelloPython.app/HelloPython.pyã«å ¥ã£ã¦ããããããã¡ãã£ã¨æ¸ãæããã¨ã¡ããã¨åä½ãå¤ãããï¼ã¾ãããããã¾ãããããï¼
ããã¥ã¡ã³ãã¼ã·ã§ã³ã¨ãã¯ç¡ãã®ããªãï¼ã¨æã£ã¦ãæ¢ãã¦ã¿ãã¨ããã®Blogã¨ã³ããªããã
ã«ãåºæ¬çãªäºãæ¸ãã¦ãã£ããï¼ããã®ä½è ã¯ãCydiaã®ä½è ã§ããããJay Freeman (saurik)ããã¿ãããããè¦ãã¨ä»ã«ãiPhoneç¨Javaãã¤ã³ãã£ã³ã°ãªãããä½ã£ã¦ãããã ãï¼
ãã£ã¨èªãã§ã¿ããã©ãç¹ã«å¤ãªå¶ç´ã¨ãããªãããã ããä¸å¿ãã¡ããã¨ä½¿ããããï¼ã¾ãããã®å¥å¦ãªObjective-C type signatureã¨ãã¯å¥ã«ãã¦ããã@objc.signature("i@:@i")ãããã奴ãï¼
ï¼åèãªã³ã¯
- PyObjC
- iPhone Dev Center ï¼è¦ç»é²ï¼