Re: NSWindowController subclass as nib file owner issues
Re: NSWindowController subclass as nib file owner issues
- Subject: Re: NSWindowController subclass as nib file owner issues
- From: "Marcus S. Zarra" <email@hidden>
- Date: Fri, 29 Jul 2005 23:54:05 -0600
Did you connect the window as an outlet for the controller? I always
forget that one myself...
Marcus
On 7/29/05, Edwin Vane <email@hidden> wrote:
> Hi,
>
> I have a subclass of NSWindowController being the file owner for a nib
> containing a window I want managed. The first thing I've noticed is that
> any outlets I add to NSWindowController aren't initialized by the
> -initWithWindowNibName method (even though I've connected the outlets to
> the file owner in interface builder). Outlets aren't initialized until I
> try to do a:
>
> [self window];
>
> which loads the window. What does initWithWindowNibName actuall do? The docs
> lead me to believe it loads the nib file and causes all the unarchiving stuff to
> happen. What would be the purpose of loading the nib file but not
> actually unarchiving the contents (which seems to be happening here)?
>
> Any insight would be appreciated. I'm just curious.
>
>
> --
>
> Edwin Vane
> MMath Candidate
> Computer Graphics Lab
> School of Computer Science
> University of Waterloo
>
> _______________________________________________
> 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