rummelonp.comNameKazuya Takeshima Blogrummelonp.hatenablog.com Mastodon@[email protected] Twitter@rummelonp GitHub@rummelonp
osx/hotkey by cho45 <cho45@lowreal.net> DESCRIPTION: Enable Hotkey integraion with Ruby/Cocoa FEATURES/PROBLEMS: Add a new NSApplication subclass named NSApplicationWithHotKey SYNOPSYS: require 'osx/cocoa' require 'osx/hotkey' app = NSApplicationWithHotKey.sharedApplication ref = app.register_hotkey("Command+Shift+J") do puts 'hello' end app.run Yes. Run this script, and press Command+Shift+J, and
Unicode names for classes and selectors I guess JSCocoa is really fully unicode now ! This only works well on the JSCocoa side, as on the ObjC side you'll have to get the class with objc_getClass([@"ãã¡ã¤ãã³ã¹" UTF8String]). I can't get it to call selectors yet. Still looks nice though ! Catch ObjC exceptions in Javascript Following Rentzsch's post about how JSCocoa was broken, you can now catch ObjC
RubyCocoaã§ã¹ã¯ãªã¼ã³ã»ã¼ããä½ãæé ã解説ããã MacOSã®ã¹ã¯ãªã¼ã³ã»ã¼ã MacOSã§ã¯ä»¥ä¸ã®æé ã§ã¹ã¯ãªã¼ã³ã»ã¼ããä½ããã¨ãã§ããã ScreenSaverViewã¯ã©ã¹ã å®è£ ãã¦.saverã¨ããæ¡å¼µåãæã¤bundleãä½ãã å®æçã«å¼ã°ãã animateOneFrame ã¡ã½ãããå®è£ ããã ãã®ãã³ãã«ã/System/Library/Screen Saver/ã«ç½®ãã XCodeã«ã¹ã¯ãªã¼ã³ã»ã¼ãã®ãã³ãã¬ã¼ãã¯ç¨æããã¦ããªããã ãCocoa Bundleãã®ããã¸ã§ã¯ããä½æã/ ScreenSaverViewã®ãµãã¯ã©ã¹ã®Objective-Cããã°ã©ã ã追å ã/ æ¡å¼µåãsaverã«å¤æ´ããã° ã¹ã¯ãªã¼ã³ã»ã¼ãç¨ã®bundleããã«ããããã¨ãã§ããã RubyCocoaã§ã®å®è£ ScreenSaverViewã®ãµãã¯ã©ã¹ãç´æ¥Rubyã§æ¸ãã
This domain has been purchased and parked by a customer of Loopia. Use LoopiaWHOIS to view the domain holder's public information. Are you the owner of the domain and want to get started? Login to Loopia Customer zone and actualize your plan. Register domains at Loopia Protect your company name, brands and ideas as domains at one of the largest domain providers in Scandinavia. Search available dom
Leopardã«æ¨æºã§æè¼ãããã®ã§ãããã便å©ã«ãªã£ãããã ã ãã¨ãã°ä»¥ä¸ã®ã¹ã¯ãªããã§è¾æ¸ã¢ããªã±ã¼ã·ã§ã³ãå¼ã³åºããã¨ãã§ããã require 'osx/cocoa' p = OSX::NSPasteboard.generalPasteboard p.declareTypes_owner([OSX::NSStringPboardType],self) p.setString_forType("åèª",OSX::NSStringPboardType) OSX::NSPerformService("Look Up in Dictionary", p) IMEãRubyã ãã§ä½ããããããããã
_ [rubycocoa][ruby][cocoa][macosx] RubyCocoaã®å¯¾è©±ç°å¢ã®ã㨠RubyCocoaã®ããã®å¯¾è©±ã¤ã³ã¿ã¼ããªã¿ã®ã¦ã¼ã¶ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¨ãã¦ããªãirbã³ã³ã½ã¼ã«ã¿ã¤ãã§ã¯ãªããCocoaReplã®ãããªã¹ã¿ã¤ã«ã«ãã ããã®ãï¼ã¨ãããã¨ãLaurentããèãããã®ã§ãããã«ã¤ãã¦è¦ãæ¸ãã ã¾ããããã³ããã£ã¦ä½ã ããï¼ã¨ãããã¨ã«ã¤ãã¦ã irbãshellãªã©ã®å¯¾è©±ç°å¢ã表示ããããã³ããã¯ãè¡ç«¯æ«ã®ããã®ã¦ã¼ã¶ã¤ã³ã¿ã¼ãã§ã¼ã¹ ç¾å¨ã®ããããGUIã§ã¯ãããã³ããã«ç¸å½ãããã®ã¯å¥ã®å½¢ã§è¡¨ç¾ããã®ãèªç¶ è¡ç«¯æ«ã®ããã®ã¤ã³ã¿ã¼ãã§ã¼ã¹(console)ã«å¼ãããããå¿ è¦ã¯ãªã 表ç¾ã®ã²ã¨ã¤ã¨ãã¦è¡ç«¯æ«çãªã¤ã³ã¿ã¼ãã§ã¼ã¹ã¨ããã®ã¯ããã ãã© CocoaReplã¿ãããªãã®ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹é¢ãèããã¨ãã«ã©ããããæèãã¦ãããã®ãåæãã
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}}