MonobjcMonobjc Documented Class Library
NumberOfItemsInMenu Method (menu)

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++
NSInteger NumberOfItemsInMenu(
	NSMenu menu
Function NumberOfItemsInMenu ( _
	menu As NSMenu _
) As NSInteger
NSInteger NumberOfItemsInMenu(
	NSMenu^ menu
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)