Override NSDocumentController?
Override NSDocumentController?
- Subject: Override NSDocumentController?
- From: Rob In der Maur <email@hidden>
- Date: Sat, 7 Dec 2002 15:28:19 +0100
I've successfully added a toolbar to my document based application and
also subclassed NSWindowController to act as the window controller for
my NSDocument subclass and as the delegate for the toolbar within my
document class.
I've spotted that in my MainMenu.nib, the toolbar can be shown/hide by
connecting the Show/Hide Toolbar menu item to the
FirstResponder:toggleToolbarShown: action. I presume is this taken care
of by the NSDocumentController class? However, there doesn't seem to be
an NSDocumentController action for customizing the toolbar. Am I right
in assuming that in order to facilitate this through a menu choice
defined in my MainMenu.nib, I have to subclass NSDocumentController and
implement a customize: method myself? Or is there an alternative way?
And if I have subclassed NSDocumentController, how do I make it
available in my MainMenu.nib (more specifically to the menuchoices)?
Thanks,
o#?
Rob In der Maur
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.