#312: reopening a class and setNeedsDisplay: segfault
-------------------------------------+--------------------------------------
 Reporter:  mattaimone...@…          |       Owner:  lsansone...@…        
     Type:  defect                   |      Status:  new                  
 Priority:  critical                 |   Milestone:  MacRuby 0.5          
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 {{{
 framework 'Cocoa'
 class ImageLayer < CALayer; def initialize(file_name); super(); end; end
 ImageLayer.new('test').setNeedsDisplay
 }}}

 unknown: [BUG] Segmentation fault

 The same class, without the modified initializer works fine:


 {{{
 class ImageLayer < CALayer; def initialize; super(); end; end
 ImageLayer.new.setNeedsDisplay # => nil
 }}}

 Interesting enough:

 {{{
 class ImageLayer < CALayer; def initialize(file_name); super(); end; end
 ImageLayer.new('test')
 #=> #<ImageLayer:0x8004963c0>
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/312>
MacRuby <http://macruby.org/>

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to