MonobjcMonobjc Documented Class Library
ValidateMenuItem Method (menuItem)

Implemented to override the default action of enabling or disabling a specific menu item.

Original signature is '- (BOOL)validateMenuItem:(NSMenuItem *)menuItem'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
bool ValidateMenuItem(
	NSMenuItem menuItem
Function ValidateMenuItem ( _
	menuItem As NSMenuItem _
) As Boolean
bool ValidateMenuItem(
	NSMenuItem^ menuItem
menuItem (NSMenuItem)
An NSMenuItem object that represents the menu item.
Return Value
YES to enable menuItem, NO to disable it.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)