Re: Switching NSDocument based application to tabbed views interface
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