MonobjcMonobjc Documented Class Library
NumberOfItemsInMenu Event
NamespacesMonobjc.AppKitNSMenu..::..NSMenuDelegateEventDispatcherNumberOfItemsInMenu

Invoked when a menu is about to be displayed at the start of a tracking session so the delegate can specify the number of items in the menu.

Original signature is '- (NSInteger)numberOfItemsInMenu:(NSMenu *)menu'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public event NSMenu..::..NumberOfItemsInMenuEventHandler NumberOfItemsInMenu
Public Event NumberOfItemsInMenu As NSMenu..::..NumberOfItemsInMenuEventHandler
Return Value
The number of menu items in the menu.
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)