Re: multi-window document best practices?

2012-05-13 Thread mlist0...@gmail.com
On May 13, 2012, at 3:07 PM, Willeke wrote: > How to Subclass NSWindowController: The NSWindowController subclass instance > should be the File’s Owner for the nib... Thank you. I missed this, probably because I'm not actually subclassing NSWindowController. But it settles it as far as I'm con

Re: multi-window document best practices?

2012-05-13 Thread Willeke
Op 13 mei 2012, om 04:11 heeft mlist0...@gmail.com het volgende geschreven: > If it were important that nibs should be built differently for single and > multiple window cases, I'd think the docs would mention it someplace, but > they don't They do. The documentation of awakeFromNib says It i

Re: multi-window document best practices?

2012-05-12 Thread mlist0...@gmail.com
On May 12, 2012, at 5:55 PM, Kyle Sluder wrote: > You are correct that nothing in the docs prohibits passing the document as > the file's owner argument for window controllers you construct yourself. And > in the case of a single window controller, it might work—though this is not > guaranteed

Re: multi-window document best practices?

2012-05-12 Thread Kyle Sluder
On May 12, 2012, at 5:42 PM, "mlist0...@gmail.com" wrote: > On May 12, 2012, at 4:45 PM, Kyle Sluder wrote: > >> Document-as-File's-Owner only makes sense if you aren't overriding >> -makeWindowControllers. > > I don't think that's the case. Certainly nothing in the docs suggest it. You are

Re: multi-window document best practices?

2012-05-12 Thread mlist0...@gmail.com
On May 12, 2012, at 4:45 PM, Kyle Sluder wrote: > Document-as-File's-Owner only makes sense if you aren't overriding > -makeWindowControllers. I don't think that's the case. Certainly nothing in the docs suggest it. Went for a drive and reflected on this a bit. I think the fact that there's a

Re: multi-window document best practices?

2012-05-12 Thread Kyle Sluder
On May 12, 2012, at 3:39 PM, "mlist0...@gmail.com" wrote: > I've have come across some surprising behavior when trying to implement a > document with two windows, each loaded from its own nib. > > In my NSDocument subclass, I have > > - (void) makeWindowControllers > { >NSWindowControlle

multi-window document best practices?

2012-05-12 Thread mlist0...@gmail.com
I've have come across some surprising behavior when trying to implement a document with two windows, each loaded from its own nib. In my NSDocument subclass, I have - (void) makeWindowControllers { NSWindowController* wc1 = [[[NSWindowController alloc] initWithWindowNibName:@"MNKDocument"