• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Untitled files and NSApp delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Untitled files and NSApp delegate
      • From: Dimitri Bouniol <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>)

  • Prev by Date: NSMutableDictionary & Strings - Weird, weird problem
  • Next by Date: Large Data Sets
  • Previous by thread: Re: Untitled files and NSApp delegate
  • Next by thread: Re: Untitled files and NSApp delegate
  • Index(es):
    • Date
    • Thread