Projects

Ticket #654 (closed defect: fixed)

Opened 22 months ago

Last modified 22 months ago

CALayer has a problem aliasing methods

Reported by: eloy.de.enige@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.6
Component: MacRuby Keywords:
Cc:

Description

This only seems to happen on CALayer subclasses:

% cat t.rb    
framework 'QuartzCore'

class X < CALayer
  attr_accessor :foo
  alias_method :foo?, :foo
end

x = X.new
p x.foo?
x.foo = true
p x.foo?

% macruby t.rb
/Users/eloy/Documents/DEVELOPMENT/MacRuby/macruby/t.rb:4:in `block': undefined method `foo' for class `X' (NameError)
	from /Users/eloy/Documents/DEVELOPMENT/MacRuby/macruby/t.rb:1:in `<main>'

Change History

Changed 22 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.6

Should be fixed in r3940.

Note: See TracTickets for help on using tickets.