MonobjcMonobjc Documented Class Library
AlertWithMessageTextDefaultButtonAlternateButtonOtherButtonInformativeTextWithFormat Method (messageTitle, defaultButtonTitle, alternateButtonTitle, otherButtonTitle, informativeText, values)
NamespacesMonobjc.AppKitNSAlertAlertWithMessageTextDefaultButtonAlternateButtonOtherButtonInformativeTextWithFormat(NSString, NSString, NSString, NSString, NSString, array<Object>[]()[][])

Creates an alert compatible with alerts created using the NSRunAlertPanel function for display as a warning-style alert.

Original signature is '+ (NSAlert *)alertWithMessageText:(NSString *)messageTitle defaultButton:(NSString *)defaultButtonTitle alternateButton:(NSString *)alternateButtonTitle otherButton:(NSString *)otherButtonTitle informativeTextWithFormat:(NSString *)informativeText, ...'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSAlert AlertWithMessageTextDefaultButtonAlternateButtonOtherButtonInformativeTextWithFormat(
	NSString messageTitle,
	NSString defaultButtonTitle,
	NSString alternateButtonTitle,
	NSString otherButtonTitle,
	NSString informativeText,
	params Object[] values
Public Shared Function AlertWithMessageTextDefaultButtonAlternateButtonOtherButtonInformativeTextWithFormat ( _
	messageTitle As NSString, _
	defaultButtonTitle As NSString, _
	alternateButtonTitle As NSString, _
	otherButtonTitle As NSString, _
	informativeText As NSString, _
	ParamArray values As Object() _
) As NSAlert
static NSAlert^ AlertWithMessageTextDefaultButtonAlternateButtonOtherButtonInformativeTextWithFormat(
	NSString^ messageTitle, 
	NSString^ defaultButtonTitle, 
	NSString^ alternateButtonTitle, 
	NSString^ otherButtonTitle, 
	NSString^ informativeText, 
	... array<Object^>^ values
messageTitle (NSString)
Title of the alert. When nil or an empty string, a default localized title is used (“Alert” in English).
defaultButtonTitle (NSString)
Title for the default button. When nil or an empty string, a default localized button title (“OK” in English) is used.
alternateButtonTitle (NSString)
Title for the alternate button. When nil, the alternate button is not created.
otherButtonTitle (NSString)
Title for the other button. When nil, the other button is not created.
informativeText (NSString)
values (array<Object>[]()[][])
Return Value
Initialized 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)