#647: Create alias when a pure objc #setFoo method is overriden
-------------------------------------+--------------------------------------
 Reporter:  eloy.de.en...@…          |       Owner:  lsansone...@…        
     Type:  defect                   |      Status:  new                  
 Priority:  blocker                  |   Milestone:                       
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 When the user, in Ruby, overrides a #setFoo method of a pure objc
 superclass, MacRuby should create an alias from #foo= to the new #setFoo
 method.

 This is because the MacRuby helper which delegates #foo= to #setFoo only
 does that for pure objc #setFoo method implementations.

 {{{
 class YourView < NSView
   def setFrame(frame)
     super
     # custom stuff
   end

   # MacRuby should create this alias when #setFrame was defined above.
   alias_method :frame=, :setFrame
 end
 }}}

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

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to