Validating MenuItems before adding them to the menu
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