> 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