[MacRuby-devel] How to use NSEvent.addGlobalMonitorForEventsMatchingMask ?

niedhui niedhui at gmail.com
Tue Jul 20 19:38:24 PDT 2010


thanks for the reply

is there any plan to support this?

On Jul 21, 2010, at 2:45 AM, Laurent Sansonetti wrote:

> Hi,
> 
> On Jul 20, 2010, at 2:33 AM, niedhui wrote:
> 
>> Hi:
>> 
>> NSEvent.addGlobalMonitorForEventsMatchingMask(NSKeyDownMask,handler:  )
>> 
>> the handler: is a block param, can i use this in macruby ? if yes ,how?
> 
> No, C-level blocks aren't supported yet, sorry.
> 
> Laurent
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



More information about the MacRuby-devel mailing list