Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Untitled files and NSApp delegate



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Untitled files and NSApp delegate (From: Dimitri Bouniol <email@hidden>)
 >Re: Untitled files and NSApp delegate (From: Francis Derive <email@hidden>)
 >Re: Untitled files and NSApp delegate (From: Dimitri Bouniol <email@hidden>)
 >Re: Untitled files and NSApp delegate (From: "I. Savant" <email@hidden>)
 >Re: Untitled files and NSApp delegate (From: Dimitri Bouniol <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.