Mavericksã«ã¯RubyCocoaãå ¥ã£ã¦ãã 10.10ããã¯Appleããã®æä¾ããªããªãäºå®ã ã Mavericksã«ã¯Ruby1.8åãã®RubyCocoaãAppleããæä¾ããã¦ããã Ruby2.0ã«å¯¾å¿ãã1.2.0ãã¤ã³ã¹ãã¼ã«ããå ´åãXcodeã§ã®ãã¬ã¼ã ã¯ã¼ã¯ã®æå®ãééããå¯è½æ§ãããã æ£è§£ã¯ /Library/Frameworks/RubyCocoa.framework rbenvç°å¢ä¸ã§ã®åããã«ã¯ ã¨ããããã/usr/bin/rubyããã«ãã¹æå®ã§ä½¿ã£ã¦ãï½ Link RubyCocoa 1.2.0 ãªãªã¼ã¹ï¼ - ããããã¼ã 2åã
ã¾ãç°å¢ os leopard ruby ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-darwin9.2.0] rubyã¯portsã§ããããã¤ã¨ããã©ã«ãã§å ¥ã£ã¦ãããã®ãããã which ruby ããã¨/opt/local/bin/rubyãªã®ã§portã§ãããæ¹ãå®è¡ããã¦ããã ç¾è±¡ $ irb irb(main):001:0> require 'osx/cocoa' LoadError: no such file to load -- osx/cocoa from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /opt/local/lib/ruby/site_ruby/1.8/rubyge
B! 5 0 0 0 使ã£ã¦ããAppleScriptã®ãã¡ã®ä¸ã¤ãMavericksã«ã¢ãããã¼ãã㦠使ããªããªã£ã¦ãã®ã§èª¿ã¹ã¦ã¿ããRubyã§ã®cocoaã®å¼ã³åºãã¨ã©ã¼ãåºã¦ãã®ã§ãã®å¯¾å¦æ³ã Yosemiteã®ã¢ãããã¼ãã«é¢ããè¿½è¨ require âosx/cocoaâ Yosemiteã®ã¢ãããã¼ãã«é¢ããè¿½è¨ è¿½è¨: 2014/10/19 Yosemiteã®ã¢ãããã¼ãã§ä¸ã§æ¸ãã¦ãRuby 1.8ãå®å ¨ã«åé¤ãããã®ã§ å¥ã®æ¹æ³ãå¿ è¦ã§ãã YosemiteããRuby1.8ãåé¤ãããã®ã§AppleScriptã§ã®ã¦ã£ã³ãã¦ã®ãµã¤ã³ãºå¤æ´ã®åãæ±ããå¤æ´ãã 追è¨ããã¾ã§ require âosx/cocoaâ AppleSCriptã使ã£ã¦ã¦ã£ã³ãã¦ãµã¤ãºãå¤æ´ããã¹ã¯ãªãããä½ã£ã¦ä½¿ã£ã¦ããã§ããã ãã®ä¸ã§ãã£ã¹ãã¬ã¤ã®å¤§ãããåã£ã¦ããã®ã«ruby+cocoa
ã¤ã¥ãã ã¨ããããä½ã£ã¦ã¿ãã(r2331) æ©ã試ãããæ¹ã¯æ¬¡ã®ã³ãã³ã㧠/Users/ããªã/Library/Developer/Xcode/Templatesã«RubyCocoaç¨ã®File Templatesã¨Project Templatesã追å ããã¾ãã % svn export --force https://rubycocoa.svn.sourceforge.net/svnroot/rubycocoa/trunk/src/template/Xcode4.x/Templates ~/Library/Developer/Xcode/Templatesåä½å ±åãæ¹åè¦æãªã©ãå¾ ã¡ãã¦ãã¾ãã
MacOS Xã®Cocoaããã°ã©ãã³ã°ã«é¢ããæ¸ç±: Learning Cocoa Cocoa Programming for Mac OS X MacOS Xããã°ã©ãã³ã°å ¥éObjective-C Cocoaã¯ãã£ã±ã ã¯ããã¦ã®Mac OS X Cocoaããã°ã©ãã³ã° Happy Macintosh Developing Time ãããã®æ¬ã«åºã¦ããä¾é¡ã®ããã°ã©ã ãRubyCocoaã§æ¸ãã¦ã¿ããããèªå ã¯ãã£ããã©ããã«ã¯ã¾ã ãªããã¨ããã®ãããã°è¿½å ãã¦ãããã¨ãããã ã§ããããããããã¯ã§ããªãã¨ããæ å ±ã... ãã¯ããã¦ã®Mac OS X Cocoaããã°ã©ãã³ã°ã 03 Hello, World : Controller.rb require 'osx/cocoa' class Controller < OSX::NSObject ib_outlets :my
RubyCocoa ã¨ã¯ï¼ RubyCocoa ã¯ãMac OS X ã¢ããªã±ã¼ã·ã§ã³ãéçºããããã®ãã¬ã¼ã ã¯ã¼ã¯ã§ãã RubyCocoa ã«ãã£ã¦ã OS X ã¢ããªã±ã¼ã·ã§ã³ãä½ãã㨠Ruby ããæ¡å¼µã©ã¤ãã©ãªã¨ã㦠Cocoa ãå©ç¨ããã㨠ãã§ããããã«ãªãã¾ãã RubyCocoa ã®ã¤ã³ã¹ãã¼ã« Tiger ã®å ´åã以ä¸ã® URL ããææ°çã® dmg ããã¦ã³ãã¼ããã¦ãã¤ã³ã¹ãã¼ã«ãã¦ãã ããã http://sourceforge.net/project/showfiles.php?group_id=44114 Leopard ã§ã¯ãRubyCocoa 㯠OS ã«æ¨æºæ·»ä»ããã¦ããã®ã§ãã¤ã³ã¹ãã¼ã«ã®å¿ è¦ã¯ããã¾ããã ã¯ããã¦ã® Mac OS X ã¢ããªã±ã¼ã·ã§ã³ ã§ã¯ããã£ããã¢ããªã±ã¼ã·ã§ã³ãä½ã£ã¦ã¿ã¾ãããã ã¾ããXcode ãç«ã¡ä¸ãã¾ãã(/De
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}