[MacRuby-devel] Problem with a window controller

Robert Carl Rice rice.audio at pobox.com
Sun Dec 2 20:24:29 PST 2012

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:

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20121202/9180ef6a/attachment-0001.html>

More information about the MacRuby-devel mailing list