From: Johan L. <joh...@gm...> - 2009-09-10 16:34:02
|
Look in the code for Limechat - it has global shortcuts. http://github.com/psychs/limechat/blob/39bd005f408a5cdaf135343842b86987a1a247a8/objc/LimeChatApplication.m http://github.com/psychs/limechat/blob/39bd005f408a5cdaf135343842b86987a1a247a8/objc/HotKeyManager.m http://github.com/psychs/limechat/blob/39bd005f408a5cdaf135343842b86987a1a247a8/ruby/controller/appcontroller.rb#L176 Seems it does it with Objective-C code. Mvh, Johan Lundström joh...@gm... On Thu, Sep 10, 2009 at 2:27 AM, Jason Toy <jt...@jt...> wrote: > Hi all, I'm trying to add a global shortcut key to my app, is this > possible with ruby cocoa? I am using leopard. I saw some tutorials on > how to do it with cocoa, it seems you need to use carbon events. Here > is the tutorial I found: > http://cocoasamurai.blogspot.com/2009/03/global-keyboard-shortcuts-with-carbon.html > > Can someone help me to do this for ruby cocoa? > Thanks, > Jason > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |