Re: -document works inconsistently in NSWindowController subclass
Re: -document works inconsistently in NSWindowController subclass
- Subject: Re: -document works inconsistently in NSWindowController subclass
- From: Charlton Wilbur <email@hidden>
- Date: Fri, 19 Nov 2004 05:21:41 -0500
On Fri, 19 Nov 2004 04:36:50 -0500, Charlton Wilbur <email@hidden> wrote:
> This may wind up just being confessional debugging, but I'm stumped.
Which indeed it was. After about 6 hours of banging my head on the
problem, I posted a question to a mailing list, and within half an
hour of hitting "send" I figured out what I was doing wrong.
For those following along at home: when you create a subclass of
NSWindowController, the obvious thing to do is to *instantiate* your
NSDocument subclass in IB. This is wrong. What you should do instead
is set File's Owner to be of your NSDocument subclass, and have all
your actions and outlets connect to File's Owner instead.
Thanks for listening, all.
Charlton
--
Charlton Wilbur
email@hidden
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