Bug 18359 - [Binding]Missing NSUserInterfaceValidation, NSValidatedUserInterface and NSMenuValidation protocols
Summary: [Binding]Missing NSUserInterfaceValidation, NSValidatedUserInterface and NSMe...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: Master
Hardware: PC Linux
: --- normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-03-13 12:37 UTC by Marek Habersack
Modified: 2017-03-15 19:37 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Marek Habersack 2014-03-13 12:37:04 UTC
When NSMenu has auto enabling of menu items turned on, it will query the application each time the menu is show whether or not to enable every menu item. This is done using either the NSMenuValidation or NSUserInterfaceValidation protocols. The process is described in detail here: https://developer.apple.com/library/mac/documentation/cocoa/conceptual/MenuList/Articles/EnablingMenuItems.html 

With the automatic menu enabling mode on, setting menu item's Enable property to false won't have the desired effect of disabling the menu. Instead, currently it is necessary to turn automatic menu item enabling mode off and manage the sate of all the menu items that would otherwise be automatically disabled/enabled.
Comment 1 Chris Hamons 2016-09-30 18:33:58 UTC
https://github.com/xamarin/xamarin-macios/pull/928
Comment 2 Sebastien Pouliot 2017-03-09 02:28:54 UTC
PR has been merge a while ago, can we close this ?