[MacRuby] #1338: Can't set origin.x of a NSRect directly

MacRuby ruby-noreply at macosforge.org
Thu Jun 23 08:18:35 PDT 2011


#1338: Can't set origin.x of a NSRect directly
----------------------------------+-----------------------------------------
 Reporter:  martin@…              |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:  MacRuby 0.11         
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------

Comment(by martin@…):

 {{{
 framework 'Cocoa'

 view = NSView.alloc.init

 view.frame.origin.x = 5 p view.frame.origin.x => 0.0

 view.frame = [5,0,0,0] p view.frame.origin.x # => 5.0 /code
 }}}


 Looks like something with accessing structs is broken?

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1338#comment:1>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list