Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > NSToolbar and NSWindowController

NSToolbar and NSWindowController
Thread Tools
sjt
Fresh-Faced Recruit
Join Date: Feb 2001
Location: London, UK
Status: Offline
Reply With Quote
Apr 11, 2004, 12:00 PM
 
OK, a straight up newbie question.

Why is NSToolbar usually instantiated and configed in the document class of a multi-document app?
Shouldn't it be instantiated and configed by the window controller?

In other words, I thought NSDocument was the model and NSWIndowController the view; so therefore, the toolbar should be managed by an instance of NSWIndowController.

Any help explaing much appreciated!
Sam
So long, and thanks for all the fish.
     
Addicted to MacNN
Join Date: Nov 2002
Location: Seattle, WA
Status: Offline
Reply With Quote
Apr 11, 2004, 02:50 PM
 
I have no idea since I've never tried to use NSDocument or NSWindowController, but I would guess it's so each document can have it's own toolbar configuration.
     
sjt  (op)
Fresh-Faced Recruit
Join Date: Feb 2001
Location: London, UK
Status: Offline
Reply With Quote
Apr 11, 2004, 08:02 PM
 
That's what's weird, the idea with NSWIndow is that it's tied to a document; so you can have more than one window for the same document with NSWindowController managing those windows...I think.
Sam
So long, and thanks for all the fish.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:07 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2