[MacRuby-devel] [MacRuby] #312: reopening a class and setNeedsDisplay: segfault

MacRuby ruby-noreply at macosforge.org
Thu Jun 10 16:50:41 PDT 2010


#312: reopening a class and setNeedsDisplay: segfault
-------------------------------------+--------------------------------------
 Reporter:  mattaimonetti@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  critical                 |   Milestone:  MacRuby 0.5          
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------

Comment(by martinlagardette@…):

 Also, getting rid of `super()` parenthesis:

 {{{
 #!ruby
 framework 'Cocoa'
 class ImageLayer < CALayer; def initialize(file_name); super; end; end
 ImageLayer.new('test').setNeedsDisplay
 }}}

 {{{
 /private/tmp/t.rb:2:in `initialize:': super: no superclass method
 `initialize' for #<ImageLayer:0x2005b5460> (NoMethodError)
         from /private/tmp/t.rb:1:in `<main>'
 }}}

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



More information about the MacRuby-devel mailing list