[macruby] #58: shouldaccept arrays instead of structures, like rubycocoa
#58: shouldaccept arrays instead of structures, like rubycocoa -----------------------------------+---------------------------------------- Reporter: lsansonetti@apple.com | Owner: lsansonetti@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/>
#58: shouldaccept arrays instead of structures, like rubycocoa -----------------------------------+---------------------------------------- Reporter: lsansonetti@apple.com | Owner: lsansonetti@apple.com Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.2 Component: MacRuby | Resolution: fixed Keywords: | -----------------------------------+---------------------------------------- Changes (by lsansonetti@apple.com): * status: new => closed * resolution: => fixed Comment: Fixed in r211/trunk. -- Ticket URL: <http://ruby.macosforge.org/trac/ticket/58#comment:1> macruby <http://ruby.macosforge.org/>
participants (1)
-
macruby