• 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
Override NSDocumentController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Override NSDocumentController?
      • From: j o a r <email@hidden>
  • Prev by Date: NSTextField Selection Problem
  • Next by Date: Re: Objective-C++ compiler updates?
  • Previous by thread: Re: NSTextField Selection Problem
  • Next by thread: Re: Override NSDocumentController?
  • Index(es):
    • Date
    • Thread