Re: Restoring Temporary Menu Title Changes
Re: Restoring Temporary Menu Title Changes
- Subject: Re: Restoring Temporary Menu Title Changes
- From: Daniel Jalkut <email@hidden>
- Date: Fri, 16 Feb 2007 14:30:27 -0500
On Feb 16, 2007, at 12:29 PM, Jim Correia wrote:
Disclaimer: I haven't written code which does this...
How about registering for NSMenuDidEndTrackingNotification and
restoring the title in the notification handler?
Interesting idea - but it seems as hackish as the others. Maybe
there are no non-hackish solutions here :)
In particular my gut feeling is that I shouldn't assume the menu
validation should only be valid during tracking For instance, if
Apple were to introduce tear of menus or something, I would expect
the altered menu titles to remain valid whenever the menu was visible
to the user.
An example where this is maybe somewhat relevant today is in UI
Accessibility, where the hierarchy of menu items is available
programatically. I'm not sure if the UI access system does some
trickery to make sure it validates menus before returning their
names, but I would expect that even if the user has never displayed
the menu, its items should have their accurate names reflected to the
UI reader.
Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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