[MacRuby-devel] [MacRuby] #647: Create alias when a pure objc #setFoo method is overriden
MacRuby
ruby-noreply at macosforge.org
Sat Apr 3 14:17:22 PDT 2010
#647: Create alias when a pure objc #setFoo method is overriden
-------------------------------------+--------------------------------------
Reporter: eloy.de.enige@… | Owner: lsansonetti@…
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/>
More information about the MacRuby-devel
mailing list