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
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
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