[MacRuby-devel] KVC: different behaviour with set and =

B. Ohr jazzbox at 7zz.de
Mon May 17 00:47:32 PDT 2010


 I have a binding of an user interface element to my controller (Controller.self.test): The setTest does work, but the 'test =' does not.

class Controller < NSWindowController
  attr_accessor :test

  def works
    setTest true
  end

  def doesnotwork
    test = true
  end

end

Is this a bug?

- Bernd


More information about the MacRuby-devel mailing list