Re: Newbie: Getting an NSWindow and setting its delegate
Re: Newbie: Getting an NSWindow and setting its delegate
- Subject: Re: Newbie: Getting an NSWindow and setting its delegate
- From: Pontus Ilbring <email@hidden>
- Date: Sat, 30 Jul 2005 16:22:38 +0200
On 7/30/05, Martin Linklater <email@hidden> wrote:
> 1) Try to set the delegate of the default Window which is created
> when I create the project. Problem is, IB doesn't let me Control-drag
> from the window to my AppController class. I tried to set the windows
> delegete in code, but although I can see the 'setDelegate' method for
> NSWindow in the docs I don't know how to actually get a pointer to
> the window to begin with... How do you 'find' a pointer to the
> default NSWindow object that is created with the project ?
You have to drag from the window's icon in the instances tab, not from
the window itself.
If you want to have a pointer to something in a nib file so you can
manipulate it in code then that is what IBOutlets are for.
_______________________________________________
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