Multi windows in Document-based app, but 1 Nib
Multi windows in Document-based app, but 1 Nib
- Subject: Multi windows in Document-based app, but 1 Nib
- From: Todd Heberlein <email@hidden>
- Date: Thu, 5 Apr 2007 14:53:51 -0700
All the documentation for Document-based applications indicate that
if you want multiple windows displaying different aspects of a single
document (e.g., multiple views of a CAD model), then you should
subclass NSWindowController, and then have each NSWindowController
subclass load up a separate NIB in the makeWindowControllers method.
QUESTION: Why can't I just put multiple windows in the main/original
Nib (i.e., MyDocument.nib)?
Will something break if I do (now or down the road with future OS or
X-Code releases)? What I want to do is have a primary window
representing the model/document, and then multiple (but optional) non-
editable windows showing different (graphical) views on the same data.
Thanks,
Todd
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden