[MacRuby-devel] Problem with a window controller
dakr.012 at gmail.com
Sun Dec 2 22:35:27 PST 2012
My code crashes if I omit the attr_accessor.
Can you refer me to instructions of how to configure the IB to link to my controller as delegate (?) . In the examples I have in my book and ,if I am not mistaken, lectures I viewed in iTunes U ( the Stanford series ), they all used the awakeFromNib as point of initialization .
On Dec 3, 2012, at 6:24 AM, Robert Carl Rice wrote:
> Hi David,
> A couple of things I notice offhand in you code:
> The NSWindowController class defines accessor methods for "window" so you shouldn't redefine it with the Ruby attr_accessor method. Note: similarly NSViewController defines accessor methods for "view".
> You can configure IB to link the window delegate when the Nib is expanded so that you don't need to set it in awakeFromNib.
> Bob Rice
> On Nov 29, 2012, at 6:50 PM, david kramf <dakr.012 at gmail.com> wrote:
>> In the copied below code only the awakeFromNib is executed . Can someone explain me what do I do wrong ? Window is displayed and I expected all other methods to be called.
>> Thanks, David
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the MacRuby-devel