Re: Monitoring a menu item's enabled state
Re: Monitoring a menu item's enabled state
- Subject: Re: Monitoring a menu item's enabled state
- From: Patrick Cusack <email@hidden>
- Date: Mon, 15 Dec 2008 14:54:37 -0800
I'm sorry. I should have been more specific. I am looking to observe
the menu item state of another application's menu item. From my
appkit experience, I should have remembered that the responder chain
looks to see if an object responds to a selector for the menu item of
interest.
I am building a foating panel that can sit on top of a third-party
application we use at work. The application in question has a ton of
nested menus without shortcuts requiring people to slog their way
through menus. I wanted to map a button on my floating panel to a
menuitem's action making people's jobs easier. I would like to bind
the button's enabled state to the menuitem's enabled state. I can
see why this is functionally impractical though.
Patrick
On Dec 15, 2008, at 1:37 PM, James Dempsey wrote:
On Dec 15, 2008, at 1:31 PM, email@hidden wrote:
I can successfully observe a menu item's selection. But is there a
way to monitor a menu item's enabled state?
Patrick
There isn't a way to monitor the enabled state, since whether a
menu is enabled or not is typically updated right before the
information is needed, usually right before the menu is displayed.
What is it that you are trying to do?
-James
--------------------------------------------------
James Dempsey
AppKit Engineering
Apple
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden