17 May
2010
17 May
'10
8:28 a.m.
Ooops, shame on me, you are right. Now it is working…. Am 17.05.2010 um 10:20 schrieb Vincent Isambart:
class Controller < NSWindowController attr_accessor :test def works setTest true end def doesnotwork test = true end end
"test = true" should be "self.test = true" "test = true" just creates a local variable named test. It's a very common mistake in Ruby. _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel