[MacRuby] #1002: AXUIElement functions won't accept Pointers of type :id
MacRuby
ruby-noreply at macosforge.org
Mon Nov 29 18:12:39 PST 2010
#1002: AXUIElement functions won't accept Pointers of type :id
---------------------------+------------------------------------------------
Reporter: haxie1@… | Owner: lsansonetti@…
Type: defect | Status: closed
Priority: blocker | Milestone: MacRuby 0.8
Component: MacRuby | Resolution: fixed
Keywords: |
---------------------------+------------------------------------------------
Changes (by lsansonetti@…):
* status: new => closed
* resolution: => fixed
Comment:
Okay, I changed MacRuby accordingly in r4955.
The following can be used now:
{{{
$ cat t.rb
framework 'ApplicationServices'
pid = 433
safari = AXUIElementCreateApplication(pid)
titlePtr = Pointer.new(:id)
err = AXUIElementCopyAttributeValue(safari, "AXTitle", titlePtr)
p titlePtr[0]
$ ./miniruby t.rb
"Safari"
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1002#comment:4>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list