Skip navigation.
 
mlRe: Untitled files and NSApp delegate
FROM : Chris Hanson
DATE : Fri Jun 30 22:35:00 2006

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

Related mailsAuthorDate
mlUntitled files and NSApp delegate Dimitri Bouniol Jun 30, 02:48
mlRe: Untitled files and NSApp delegate Francis Derive Jun 30, 07:38
mlRe: Untitled files and NSApp delegate Dimitri Bouniol Jun 30, 09:54
mlRe: Untitled files and NSApp delegate I. Savant Jun 30, 15:40
mlRe: Untitled files and NSApp delegate Dimitri Bouniol Jun 30, 21:40
mlRe: Untitled files and NSApp delegate Chris Hanson Jun 30, 22:35
mlRe: Untitled files and NSApp delegate Dimitri Bouniol Jun 30, 22:42