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

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
References: 
 >Show/Hide Toolbar Menu Item in Document-based application (From: Andrew Madsen <email@hidden>)
 >Re: Show/Hide Toolbar Menu Item in Document-based application (From: mmalc crawford <email@hidden>)
 >Re: Show/Hide Toolbar Menu Item in Document-based application (From: Andrew Madsen <email@hidden>)
 >Re: Show/Hide Toolbar Menu Item in Document-based application (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: index out of bounds
  • Next by Date: Permissions in an app bundle
  • Previous by thread: Re: Show/Hide Toolbar Menu Item in Document-based application
  • Next by thread: index out of bounds
  • Index(es):
    • Date
    • Thread