Up

# NSAlert

### Authors

Fred Kiefer (`FredKiefer@gmx.de`)
Richard Frith-Macdonald (`richard@brainstorm.co.uk`)
Pascal J. Bourguignon (`pjb@imaginet.fr`)

> Encapsulate an alert panel

Copyright: (C) (C) 1998, 2000, 2004 Free Software Foundation, Inc.

### Contents -

1. Software documentation for the NSAlert class
2. Software documentation for the NSObject(NSAlertDelegate) informal protocol
3. Software documentation for the NSAlertDelegate protocol

# Software documentation for the NSAlert class

## NSAlert : NSObject

> Declared in:
>   AppKit/NSAlert.h

Availability: MacOS-X 10.3.0
Description forthcoming.
Method summary

- +alertWithError:
- +alertWithMessageText:defaultButton:alternateButton:otherButton:informativeTextWithFormat:,...
- -addButtonWithTitle:
- -alertStyle
- -beginSheetModalForWindow:completionHandler:
- -beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:
- -buttons
- -delegate
- -helpAnchor
- -icon
- -informativeText
- -messageText
- -runModal
- -setAlertStyle:
- -setDelegate:
- -setHelpAnchor:
- -setIcon:
- -setInformativeText:
- -setMessageText:
- -setShowsHelp:
- -showsHelp
- -window

### alertWithError:

+ (NSAlert*) alertWithError: (NSError*)error;
Availability: MacOS-X 10.4.0
Description forthcoming.

### alertWithMessageText: defaultButton: alternateButton: otherButton: informativeTextWithFormat: ,...

+ (NSAlert*) alertWithMessageText: (NSString*)messageTitle defaultButton: (NSString*)defaultButtonTitle alternateButton: (NSString*)alternateButtonTitle otherButton: (NSString*)otherButtonTitle informativeTextWithFormat: (NSString*)format,...;
Availability: MacOS-X 10.3.0
Description forthcoming.

### addButtonWithTitle:

- (NSButton*) addButtonWithTitle: (NSString*)aTitle;
Availability: MacOS-X 10.3.0
Description forthcoming.

### alertStyle

- (NSAlertStyle) alertStyle;
Availability: MacOS-X 10.3.0
Description forthcoming.

### beginSheetModalForWindow: completionHandler:

- (void) beginSheetModalForWindow: (NSWindow*)sheet completionHandler: (GSNSWindowDidEndSheetCallbackBlock)handler;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### beginSheetModalForWindow: modalDelegate: didEndSelector: contextInfo:

- (void) beginSheetModalForWindow: (NSWindow*)window modalDelegate: (id)delegate didEndSelector: (SEL)didEndSelector contextInfo: (void*)contextInfo;
Availability: MacOS-X 10.3.0
Description forthcoming.

### buttons

- (NSArray*) buttons;
Availability: MacOS-X 10.3.0
Description forthcoming.

### delegate

- (id) delegate;
Availability: MacOS-X 10.3.0
Description forthcoming.

### helpAnchor

- (NSString*) helpAnchor;
Availability: MacOS-X 10.3.0
Description forthcoming.

### icon

- (NSImage*) icon;
Availability: MacOS-X 10.3.0
Description forthcoming.

### informativeText

- (NSString*) informativeText;
Availability: MacOS-X 10.3.0
Description forthcoming.

### messageText

- (NSString*) messageText;
Availability: MacOS-X 10.3.0
Description forthcoming.

### runModal

- (NSInteger) runModal;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setAlertStyle:

- (void) setAlertStyle: (NSAlertStyle)style;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setDelegate:

- (void) setDelegate: (id)delegate;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setHelpAnchor:

- (void) setHelpAnchor: (NSString*)anchor;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setIcon:

- (void) setIcon: (NSImage*)icon;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setInformativeText:

- (void) setInformativeText: (NSString*)informativeText;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setMessageText:

- (void) setMessageText: (NSString*)messageText;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setShowsHelp:

- (void) setShowsHelp: (BOOL)showsHelp;
Availability: MacOS-X 10.3.0
Description forthcoming.

### showsHelp

- (BOOL) showsHelp;
Availability: MacOS-X 10.3.0
Description forthcoming.

### window

- (id) window;
Availability: MacOS-X 10.3.0
Description forthcoming.

# Software documentation for the NSObject(NSAlertDelegate) informal protocol

## NSObject(NSAlertDelegate)

> Declared in:
>   AppKit/NSAlert.h

Availability: MacOS-X 10.0.0
Description forthcoming.
Method summary

- -alertShowHelp:

### alertShowHelp:

- (BOOL) alertShowHelp: (NSAlert*)alert;
Availability: MacOS-X 10.0.0
Description forthcoming.

# Software documentation for the NSAlertDelegate protocol

## NSAlertDelegate

> Declared in:
>   AppKit/NSAlert.h

> Conforms to:
>   NSObject

Availability: MacOS-X 10.0.0
Description forthcoming.
Up