• 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: Switching NSDocument based application to tabbed views interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching NSDocument based application to tabbed views interface


  • Subject: Re: Switching NSDocument based application to tabbed views interface
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 21 Jan 2009 14:15:07 -0600

On 21 Jan 2009, at 1:34 PM, email@hidden wrote:

Googling with search terms of - NSDocument tabs site:www.cocoabuilder.com

109 hits, item 13 looks promising:

Cocoabuilder - (Jacob Lukas) multiple documents, single window

which in turn references

CocoaDev: DocumentBasedAppWithOneWindowForAllDocuments

There we go. To prime the search engines:

A guide to putting more than one NSDocument into a single NSWindow (like the Windows MDI pattern -- useful in human interfaces like those of Shark and Xcode) can be found at
<http://www.cocoadev.com/index.pl?DocumentBasedAppWithOneWindowForAllDocuments >.


It involves subclassing NSDocumentController and NSWindowController. There's a singleton NSWindowController, and your NSDocument subclass instance should claim it as it activates. There is much more to it; read the article.

There's also an argument about an alternative method, involving one NSWindow per NSDocument, and hiding/swapping each into the same location, but that's not precisely on point.

	— F

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Switching NSDocument based application to tabbed views interface (From: Vladimir Pouzanov <email@hidden>)
 >Re: Switching NSDocument based application to tabbed views interface (From: Ross Carter <email@hidden>)
 >Re: Switching NSDocument based application to tabbed views interface (From: Fritz Anderson <email@hidden>)
 >Re: Switching NSDocument based application to tabbed views interface (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Number Formatter
  • Next by Date: Re: Number Formatter
  • Previous by thread: Re: Switching NSDocument based application to tabbed views interface
  • Next by thread: Re: Switching NSDocument based application to tabbed views interface
  • Index(es):
    • Date
    • Thread