• 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
Show/Hide Toolbar Menu Item in Document-based application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Show/Hide Toolbar Menu Item in Document-based application


  • Subject: Show/Hide Toolbar Menu Item in Document-based application
  • From: Andrew Madsen <email@hidden>
  • Date: Tue, 4 Jul 2006 22:46:58 -0600

I searched the archives for the answer to this question, but I couldn't find anything. I've got a document-based application where each document has a toolbar. I've got customizeToolbar and showhide methods in MyDocument.m and in FirstResponder in MainMenu.nib. I've connected Show/Hide Toolbar and Customize Toolbar menu items in the View menu to these actions via FirstResponder and they work fine. The only problem is, I can't figure out how to get the Show/Hide Toolbar item to switch between Show Toolbar and Hide Toolbar based on the current state of the frontmost document's toolbar. The menu item just says Show/Hide Toolbar all the time. It was my understanding that this switching is supposed to be taken care of, but I find no reference to using it in a document-based application. I'm trying to figure out what I'm missing. There are other apps (OmniGraffle for one) that do this correctly, so obviously it is possible, I'm just trying to figure out if it requires a more or less involved workaround or if I'm just doing something stupid/missing something simple.

Thanks,
Andrew Madsen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Show/Hide Toolbar Menu Item in Document-based application
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Reading mail accounts with out Mail.app launching
  • Next by Date: Re: Show/Hide Toolbar Menu Item in Document-based application
  • Previous by thread: Reading mail accounts with out Mail.app launching
  • Next by thread: Re: Show/Hide Toolbar Menu Item in Document-based application
  • Index(es):
    • Date
    • Thread