Skip navigation.
 
mlRe: Show/Hide Toolbar Menu Item in Document-based application
FROM : Andrew Madsen
DATE : Wed Jul 05 09:31:52 2006

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
>

Related mailsAuthorDate
mlShow/Hide Toolbar Menu Item in Document-based application Andrew Madsen Jul 5, 06:46
mlRe: Show/Hide Toolbar Menu Item in Document-based application mmalc crawford Jul 5, 06:51
mlRe: Show/Hide Toolbar Menu Item in Document-based application Andrew Madsen Jul 5, 08:05
mlRe: Show/Hide Toolbar Menu Item in Document-based application mmalc crawford Jul 5, 08:11
mlRe: Show/Hide Toolbar Menu Item in Document-based application Andrew Madsen Jul 5, 09:31