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

[MacRuby-devel] Checkbox state

2009-07-08 Thread Marinus van der Lugt
Hi All, First post, so a little bit about me: I am a SW engineer and have been one for over 20 years, increadible as that may sound. I have programmed on the Mac before in Ada95, Obj-C and Java (but I have had a pause of about 5 years from the Mac). Now that MacRuby seems to gain some foothold I'd