Ticket #647 (closed defect: fixed)
Create alias when a pure objc #setFoo method is overriden
| Reported by: | eloy.de.enige@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.6 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.

