MonobjcMonobjc Documented Class Library
ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar Event
NamespacesMonobjc.AppKitNSToolbar..::..NSToolbarDelegateEventDispatcherToolbarItemForItemIdentifierWillBeInsertedIntoToolbar

Sent to request a new toolbar item; returns a toolbar item of the identified kind for the specified toolbar.

Original signature is '- (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
Return Value
The toolbar item for the specified toolbar and identifier. Return nil to indicate that the identified kind of toolbar item is not supported. When an item is requested again, you may return the same NSToolbarItem object returned earlier or a different instance.
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)