Projects

Ticket #647 (closed defect: fixed)

Opened 23 months ago

Last modified 22 months ago

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

Changed 22 months ago by eloy.de.enige@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in #3919.

Changed 22 months ago by eloy.de.enige@…

  • milestone set to MacRuby 0.6
Note: See TracTickets for help on using tickets.