Ticket #58 (closed defect: fixed)
shouldaccept arrays instead of structures, like rubycocoa
| Reported by: | lsansonetti@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.2 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.

