Projects

Ticket #58 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Changed 4 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r211/trunk.

Note: See TracTickets for help on using tickets.