Re: [MacRuby-devel] Checkbox state

2009-07-08 Thread Marinus van der Lugt
Thanks John, Yes the simple example works OK. My controller looks like this: class DisclaimerController < NSWindowController attr_accessor :showAgain def exitButtonAction(sender) NSLog("Disclaimer Window: exit button clicked") end def startButtonAction(sender) NSLog("

Re: [MacRuby-devel] Checkbox state

2009-07-08 Thread John Shea
Hi Marinus / Rien, I just did a quick test, given a nib with window and a controller ruby file. 1. I dragged a checkbox NSButton onto the window 2. i created an attr_accessor :check in my controller 3. I created a method called test_check in my controller: def test_check(sender) p @che