<é±å èªåã®ãã¡ããµã¼ããä½ã> #1 ããã¸ã§ã¯ããä½ã
JXUGC #13 Tokyoã§ç»å£ãã¾ãããï¼ããã§ç´¹ä»ã§ããªãã£ãç´°ããå®è£ ã®ãã¤ã³ãã解説ãã¦ããã¤ã¤ï¼Xamarin.Mac ã使ã£ã¦ä¸æ¬ã®ã¢ããªã±ã¼ã·ã§ã³ãä»ä¸ãã¦ããéç¨ãç´¹ä»ãã¦ããããã¨æãã¾ãã
JXUGC ã®è³æã¨åç»ã¯ãã¡ãã®è¨äºãåç §ãã¦ãã ããã
ç°å¢ã®æºå
æºåãããã®ã¯ä¸è¨ã®ã¨ããã§ãã
- OSX 10.9 以éã®ã¤ã³ã¹ãã¼ã«ãããMac (10.11æ¨å¥¨)
- Xamarin.Mac + XamarinStudio
- GitHub - ksasao/Gochiusearch: A Fast Scene Search Engine for Anime Series 'Gochuumon wa Usagi Desuka?' (é©å½ãªå ´æã«
master
ãã¯ãã¼ã³ãã¦ãã)
XamarinStudio ã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ä»¥åã«ãç´¹ä»ãã¾ããã
ç´¹ä»ããæé ã§ã¯Xamarin.Macã®ã¿ãã¤ã³ã¹ãã¼ã«ãããã¨ã«ãªãã¾ããï¼ã¢ãã¤ã«ã®Xamarinã触ã£ã¦ã¿ããã¨èãã¦ããå ´åã¯ï¼æ®éã«Universal Installerã§ãã§ãã¯ãå ¥ããã ãã§æ¸ã¿ã¾ãã
ç¾æç¹ã§æãå®å®ãã¦ããããã§ããã®ã¯ï¼
ã®çµã¿åããã§ããã¤ã¾ãBetaãã£ã³ãã«ã§ãããã®çµã¿åããã§ããã° PCL4.6 ãããã¡ã¤ã«ã使ãã¾ããï¼Stableã§ããã¾ãã¾ããã2016/05/11æç¹ã§ã¯Alphaã¯ã ãã§ããããã£ã³ãã«ã£ã¦ãªãããããã¨ããæç¹ã§ã¯ã¤ã³ã¹ãã¼ã«ç¶æ ã®ã¾ã¾ãããå¿ è¦ã¯ããã¾ããããã ã¢ãããã¼ãã¯ç©æ¥µçã«é©ç¨ãã¾ãããã
Gochiusearch ãã¯ãã¼ã³ãã¾ãããï¼ãã®ã·ãªã¼ãºã§ã¯æ°ããã½ãªã¥ã¼ã·ã§ã³ã¨ããã¸ã§ã¯ããä½ãï¼å ã®ã¬ãã¸ããªããé©å®åç §ãã¤ã¤ä½ã£ã¦ããããã¨æãã¾ãã
ããã¸ã§ã¯ããä½ã
ãã£ããXamarinStudioãç«ã¡ä¸ãã¾ããããå·¦ä¸ã®New Solution...
ãã¯ãªãã¯ãã¦ï¼Mac Cocoa App
ãé¸æãã¾ãã
次ã®ç»é¢ã§ï¼ã¢ããªã±ã¼ã·ã§ã³åãã¿ã¼ã²ããOSãã¼ã¸ã§ã³ãè¨å®ãã¦ããã¾ãã
- App Name
ã¢ããªã±ã¼ã·ã§ã³åã§ããç»é¢ä¸é¨ã®ã¡ãã¥ã¼ãï¼Dockä¸ï¼ãã³ãã«ã®ååã¨ãã¦è¡¨ç¤ºããã¾ãã - Organization Identifier
ãã³ãã«IDãçæããã®ã«ä½¿ããã¾ããURLãéãã並ã¹ããããªè¨æ³ãä¸è¬çã§ããã¢ããªã±ã¼ã·ã§ã³ã®ç½²åãªã©ãè¡ãå ´åã«ã¯æ°ãã¤ããå¿ è¦ãããã¾ããå¾ã§å¤æ´ã§ãã¾ãã®ã§ï¼æ©ã¾ãªãã¦ã大ä¸å¤«ã§ãã - Dock Item
Dockä¸ã®ååï¼ãã³ãã«ã®ååã ããã¢ããªã±ã¼ã·ã§ã³åã¨éã表è¨ã«ãããã¨ãã§ãã¾ããä¾ãã°ã¢ããªã±ã¼ã·ã§ã³åãé·ãã¦Finderä¸ãLaunchpadä¸ã§çç¥è¡¨ç¤ºããã¦ãã¾ãå ´åãªã©ã«æå¹ã§ããçç¥è¡¨ç¤ºããã¦ãã¾ããã©ããã¯ï¼å³ã®ãã¬ãã¥ã¼ã§ç¢ºèªãããã¨ãã§ãã¾ãã - Extension
ããã¥ã¡ã³ããç·¨éãããããªã¢ããªã±ã¼ã·ã§ã³ã®å ´åï¼ã¢ããªã±ã¼ã·ã§ã³ãèå¥ããæ¡å¼µåãç»é²ãã¦ãããã¨ãã§ãã¾ãã - Target
åä½ããOSXã®æå°ãã¼ã¸ã§ã³ãæå®ãã¾ãããã¾ãã«ãå°ãããã¦ãã¾ãã¨ä½¿ç¨ã§ããAPIãå°ãªããªã£ã¦ãã¾ãã¾ããããã§ã¯10.9
ã§é²ãã¾ãã
æå®ã§ãããï¼æ¬¡ã®ç»é¢ã§ããã¸ã§ã¯ããå®éã«ä½æãã¾ãã
- Project Name
Cocoa Appããã¸ã§ã¯ãã®ååã§ããç¹ã«å¤æ´ã®å¿ è¦ã¯ããã¾ããã - Solution Name
ããã¸ã§ã¯ããå å ããã½ãªã¥ã¼ã·ã§ã³ã®ååã決ãã¾ããããã§ã¯ç¹ã«å¤æ´ãã¾ããã - Location
ã½ãªã¥ã¼ã·ã§ã³ã¾ãã¯ããã¸ã§ã¯ãã®ãã£ã¬ã¯ããªã®ä½æå ãæå®ãã¾ããå³ãã¤ã³ã§å®éã«ã©ã®ãããªæ§é ã§ä½æãããããã¬ãã¥ã¼ã§ãã¾ãã - Version Control
ä½ææç¹ãã git 管çä¸ã«ãããã¨ãã§ãã¾ããããã«XamarinStudioã使ç¨ããã¡ã¿ãã¼ã¿ããã«ãã®ä¸éãã¡ã¤ã«ï¼ãã«ãçµæãªã©ãç¡è¦ããããã«è¨å®ãã .gitignore ãé ç½®ã§ãã¾ãã
é©å½ã«è¨å®ã§ãããï¼Create
ãã¿ã³ã§ã½ãªã¥ã¼ã·ã§ã³ãä½æãã¦ä¿åãã¾ãããããã°ããå¾
ã¤ã¨AppDelegate.cs
ãéãããç¶æ
ã«ãªãã¾ãã
次åäºå
ä½ææç¹ã®ããã¸ã§ã¯ãã«å«ã¾ãã¦ãããã¡ã¤ã«ã®èª¬æããã¦ï¼ImageSearchEngineã¸ã®åç
§ã追å ãï¼AppDelegate.cs
ã§æåã«ããã¹ããã¨ã解説ãã¾ãã