Re: Untitled files and NSApp delegate
Re: Untitled files and NSApp delegate
- Subject: Re: Untitled files and NSApp delegate
- From: Chris Hanson <email@hidden>
- Date: Fri, 30 Jun 2006 13:35:00 -0700
On Jun 30, 2006, at 12:40 PM, Dimitri Bouniol wrote:
I am under the impression (I might and probably am wrong) that each
NSDocument has to have its own Window.
I don't believe this is required; it's just how the template comes
set up by default. I would probably try to use the NSDocument
architecture even if I were implementing a tabbed interface, rather
than roll my own document architecture. That way I'd still be able
to leverage all of the things the document architecture gives me for
free.
For example, I might try to create a subclass of NSWindowController
that handles all of the tabbed-document interaction, have my
documents interact with that, and have my document class override -
makeWindowControllers: to instantiate the proper window controller
instance and wire it into the tab-handling machinery.
-- Chris
_______________________________________________
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