MonobjcMonobjc Documented Class Library
NumberOfItemsInMenuMessage Method (menu)
NamespacesMonobjc.AppKitNSMenu..::..NSMenuDelegateEventDispatcherNumberOfItemsInMenuMessage(NSMenu)

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 NSInteger NumberOfItemsInMenuMessage(
	NSMenu menu
)
Public Function NumberOfItemsInMenuMessage ( _
	menu As NSMenu _
) As NSInteger
public:
NSInteger NumberOfItemsInMenuMessage(
	NSMenu^ menu
)
Parameters
menu (NSMenu)
The menu object about to be displayed.
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)