Re: Showing a window from a second nib
Re: Showing a window from a second nib
- Subject: Re: Showing a window from a second nib
- From: Brian Luft <email@hidden>
- Date: Sat, 05 Jan 2002 21:18:17 -0600
Hooray!
A colleague suggested that I clean my project and rebuild from scratch, and
that worked! I guess something might have gotten confused, I'm not sure. I
also did put in the code you suggested, Tom. It seems to make a bit more
sense than what I was doing.
Thanks. Brian
On 1/5/02 8:29 PM, "email@hidden" <email@hidden> wrote:
>
Make AboutController be a subclass of NSWindowController instead of
>
NSObject, then window will already be declared as an outlet and
>
showWindow: will already be implemented.
>
>
Then load the nib in when you construct the controller, not in
>
showWindow.
>
>
Here's how I normally handle the nib-windows with controllers...
>
<clipped code>
--
Brian Luft
email@hidden
http://youma.cjb.net