Re: Multiple documents per window
Re: Multiple documents per window
- Subject: Re: Multiple documents per window
- From: Mike Ferris <email@hidden>
- Date: Wed, 30 Mar 2005 07:31:22 -0800
You might want to look into MOViewController. (Part of MOKit at
http://mokit.sourceforge.net)
NSDocument is not necessarily tied to a window, but it does want an
NSWindowController. MOViewController is a subclass of
NSWindowController that only controls a subset of a window (a chunk of
its view hierarchy).
You need to do a bit of work to make it work with NSDocument, primarily
you need to override the NSDocument actions like saveDocument:,
printDocument:, etc... All they need to do is forward the messages on
to their document, but if you don't override them, the NSWindow catches
them and tries to forward them to the document associated with the
whole window.
This is very similar to the way Xcode works when you have multiple
source files in a split editor in a single window.
Mike Ferris
_______________________________________________
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