-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBCAlert.h
More file actions
35 lines (25 loc) · 1.25 KB
/
BCAlert.h
File metadata and controls
35 lines (25 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* BCAlert.h
* Bartender
*
* Created by Tom Houpt on 12/7/30.
* Copyright 2012 Behavioral Cybernetics LLC. All rights reserved.
*
*/
#import <Cocoa/Cocoa.h>
// returns button pressed
// e.g, NSAlertFirstButtonReturn, NSAlertSecondButtonReturn
// NSInteger style, e.g., NSAlertStyleWarning, NSAlertStyleInformational
void BCOneButtonAlert(unsigned long style, NSString *message, NSString *information, NSString *button1);
NSInteger BCTwoButtonAlert(unsigned long style, NSString *message, NSString *information, NSString *button1, NSString *button2);
NSInteger BCThreeButtonAlert(unsigned long style, NSString *message, NSString *information, NSString *button1, NSString *button2, NSString *button3);
void BCOneButtonAlertWithScrollingText(unsigned long style, NSString *message, NSString *information,NSString *scrollText,NSString *button1);
//An alert’s return values for buttons are position dependent; buttons numbered RIGHT to LEFT.
// The following constants describe the return values for the first three buttons on an alert
// (assuming a language that reads left to right).
//
//enum {
// NSAlertFirstButtonReturn = 1000, // rightmost button on the dialog or sheet.
// NSAlertSecondButtonReturn = 1001,
// NSAlertThirdButtonReturn = 1002
//};