-
Notifications
You must be signed in to change notification settings - Fork 0
/
Controller.h
49 lines (43 loc) · 1.53 KB
/
Controller.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// Controller.h
// Monkey Simulator
//
// Created by Aaron B. Russell on 2009-10-27.
// Copyright 2009 Rocket Dog Creative. Released under the New BSD License.
//
#import <Cocoa/Cocoa.h>
@interface Controller : NSObject {
NSTextField *stringBeingTested;
NSTextField *lastString;
NSTextField *lastLength;
NSTextField *lastMatches;
NSTextField *lastContext;
NSTextField *longestString;
NSTextField *longestLength;
NSTextField *longestMatches;
NSTextField *longestContext;
NSTextField *humanSeconds;
NSTextField *monkeySeconds;
NSButton *startButton;
NSButton *stopButton;
NSProgressIndicator *progressIndicator;
bool *userWantsToAbort;
}
@property (assign) IBOutlet NSTextField *stringBeingTested;
@property (assign) IBOutlet NSTextField *lastString;
@property (assign) IBOutlet NSTextField *lastLength;
@property (assign) IBOutlet NSTextField *lastMatches;
@property (assign) IBOutlet NSTextField *lastContext;
@property (assign) IBOutlet NSTextField *longestString;
@property (assign) IBOutlet NSTextField *longestLength;
@property (assign) IBOutlet NSTextField *longestMatches;
@property (assign) IBOutlet NSTextField *longestContext;
@property (assign) IBOutlet NSTextField *humanSeconds;
@property (assign) IBOutlet NSTextField *monkeySeconds;
@property (assign) IBOutlet NSButton *startButton;
@property (assign) IBOutlet NSButton *stopButton;
@property (assign) IBOutlet NSProgressIndicator *progressIndicator;
@property (assign) bool *userWantsToAbort;
- (IBAction)startMonkeys:(id)sender;
- (IBAction)stopMonkeys:(id)sender;
@end