[MacRuby-devel] [macruby] #58: shouldaccept arrays instead of structures, like rubycocoa
macruby
ruby-noreply at macosforge.org
Tue May 20 15:54:57 PDT 2008
#58: shouldaccept arrays instead of structures, like rubycocoa
-----------------------------------+----------------------------------------
Reporter: lsansonetti at apple.com | Owner: lsansonetti at apple.com
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.2
Component: MacRuby | Keywords:
-----------------------------------+----------------------------------------
Currently, when messaging an API that accepts a C structure from MacRuby,
you have to provide an instance of the boxed class. RubyCocoa allows you
to pass an array of elements instead, which is more user friendly,
especially when dealing with NSRect/NSSize/... objects.
{{{
window.frame = NSRect.new(NSPoint.new(0, 1), NSSize.new(2, 3)) # working
window.frame = [0,1,2,3] # not working yet
}}}
--
Ticket URL: <http://ruby.macosforge.org/trac/ticket/58>
macruby <http://ruby.macosforge.org/>
More information about the MacRuby-devel
mailing list