• 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
Validating MenuItems before adding them to the menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Validating MenuItems before adding them to the menu


  • Subject: Validating MenuItems before adding them to the menu
  • From: Mudi Dandan <email@hidden>
  • Date: Tue, 23 Sep 2008 19:00:54 +0200

Hi,

I'm building a context menu for a table view. The context menu will naturally include some of the items from the application menu, but when the related actions are not available, I don't want them to show in the context menu.
My question is: is there a method to determine whether an item in my context menu would be active or not, like it is done in the main menu?


In other words, I need a function that would walk through the responder chain and validate the menu items, before putting them in the context menu.

Or any suggestion on how you would handle the problem.

Thanks for the help
Mudi


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: NSURLDownload resumeData always nil
  • Next by Date: Bindings Help
  • Previous by thread: Calendar Store with non AddressBook participants?
  • Next by thread: Re: Validating MenuItems before adding them to the menu
  • Index(es):
    • Date
    • Thread