Re: controller class and window
Re: controller class and window
- Subject: Re: controller class and window
- From: Dan Saul <email@hidden>
- Date: Thu, 3 Mar 2005 11:32:00 -0600
The controller class should be of type NSWindowController, you refer
to the window in that via [self window].
On Thu, 03 Mar 2005 11:35:54 -0500, Luc Vandal <email@hidden> wrote:
> Hi,
>
> How can the controller class access the window? I did subclass NSWindow
> and in IB, the window shows in the controller outlets but if I try to
> generate the files for the controller class, there's no IBOutlet object
> being created for the window.
>
> I tried to add it manually but the object is always null.
>
> I need to create communication between the controller and the window
> because keyDown is handled by the window and I want to use
> notifications to let the controller know that a key has been hit.
>
> Thanks!
>
> Luc
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden