MonobjcMonobjc Documented Class Library
AddButtonWithTitle Method (buttonTitle)
NamespacesMonobjc.AppKitNSAlertAddButtonWithTitle(NSString)

Adds a button with a given title to the receiver.

Original signature is '- (NSButton *)addButtonWithTitle:(NSString *)buttonTitle'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSButton AddButtonWithTitle(
	NSString buttonTitle
)
Public Overridable Function AddButtonWithTitle ( _
	buttonTitle As NSString _
) As NSButton
public:
virtual NSButton^ AddButtonWithTitle(
	NSString^ buttonTitle
)
Parameters
buttonTitle (NSString)
Title of the button to add to the alert. Must not be nil.
Return Value
Button added to the alert.
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)