[MacRuby-devel] [macruby] #105: BridgeSupport can't convert KCGSessionEventTap as an argument for CGEventTapCreate
macruby
ruby-noreply at macosforge.org
Sun Jul 27 19:52:13 PDT 2008
#105: BridgeSupport can't convert KCGSessionEventTap as an argument for
CGEventTapCreate
--------------------------------------+-------------------------------------
Reporter: juanger at ciencias.unam.mx | Owner: lsansonetti at apple.com
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.3
Component: MacRuby | Keywords:
--------------------------------------+-------------------------------------
When running the following code:
{{{
#!ruby
eventTap = CGEventTapCreate(KCGSessionEventTap, KCGHeadInsertEventTap,
0, eventMask, @callback, nil)
}}}
It exits and displays the following error:
{{{
`CGEventTapCreate': can't convert Ruby object `1' to Objective-C value of
type `^{__CGEventTapProxy=}' (ArgumentError)
}}}
Also, the callback function, passed as a lambda can't be converted.
--
Ticket URL: <https://www.macruby.org/trac/ticket/105>
macruby <http://macruby.org/>
More information about the MacRuby-devel
mailing list