Show/Hide Toolbar Menu Item in Document-based application
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