Re: Show/Hide Toolbar Menu Item in Document-based application
Re: Show/Hide Toolbar Menu Item in Document-based application
- Subject: Re: Show/Hide Toolbar Menu Item in Document-based application
- From: Andrew Madsen <email@hidden>
- Date: Wed, 5 Jul 2006 01:31:52 -0600
Thanks, I've got it all working now. Added a validateMenuItem:
method to MyDocument.m and put logic in it that sets the title of the
Hide/Show Toolbar menu item based on the visibility of the toolbar.
I must say, this list is amazingly helpful!
-Andrew
On Jul 5, 2006, at 12:11 AM, mmalc crawford wrote:
On Jul 4, 2006, at 11:05 PM, Andrew Madsen wrote:
Thanks for the link. I had already read through that, but it
seems that the stuff described in that document is only for
enabling/disabling menu items. I want to switch one menu item
between reading "Show Toolbar" and "Hide Toolbar".
"If, however, there is additional work that you want to do that is
specific to a menu item, use validateMenuItem:—for example,
validateMenuItem: is also a good place to toggle titles or set
state on menu items to make sure they're always correct."
mmalc
_______________________________________________
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