What's wrong with having multiple windows per document in only one nib?
What's wrong with having multiple windows per document in only one nib?
- Subject: What's wrong with having multiple windows per document in only one nib?
- From: Stephane Sudre <email@hidden>
- Date: Sun, 14 Aug 2005 17:35:59 +0200
When you look at the different tutorials, documents on multiple windows
per NSDocument, the recommended solution is to have multiple nibs (one
per window) and one controller per window.
When making tests, this just work but not as I wish to. When you create
or open a document, all the windows (main and secondaries) are
displayed. This is not what I would like.
Basically, I'm trying to add a build window (as in Xcode or Project
Builder) per document.
When making tests, with one nib per document and 2 windows per document
(one for the document window), I'm apparently getting the proper result:
- the secondary window is not displayed by default.
- the secondary window is closed when the main document window is
closed.
- there's one secondary window per document.
Is there something wrong going this way instead of the recommended one?
_______________________________________________
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