Re: [MacRuby-devel] Problem with a window controller

2012-12-03 Thread Robert Carl Rice
Hi David, You should consider the "window" Objective C property to be "owned" by NSWindowController and it's confusing to define a Ruby class variable with the same name. It should automatically appear as an IB outlet for your NSWindowController subclass that you would "hook up" in IB just as y

Re: [MacRuby-devel] Problem with a window controller

2012-12-03 Thread david kramf
Hi Bob I never programmed in Objective-C. When I open a MacRuby project I automatically get a window attar_accessor defined in my AppDelegate created code, but not in the controller which I write by my own. If I connect, using IB , the window to my controller parameter (object variable) , I get

Re: [MacRuby-devel] Problem with a window controller

2012-12-03 Thread Robert Carl Rice
Hi David, AppDelegate doesn't inherit from NSWindowController so you would need a MacRuby outlet to obtain a link to the Main Menu window or any other object instantiated in the NIB, but usually you don't need this. This outlet doesn't need to be named "window". You could rename it to something