-
Notifications
You must be signed in to change notification settings - Fork 3
/
QuizerAppDelegate.h
42 lines (30 loc) · 952 Bytes
/
QuizerAppDelegate.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
//
// QuizerAppDelegate.h
// Quizer
//
// Created by Joshua Garnham on 28/03/2011.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface QuizerAppDelegate : NSObject <NSApplicationDelegate, NSTableViewDataSource> {
NSWindow *window;
NSMutableArray *questionsAndAnswers;
NSTimer *timer;
IBOutlet NSTextField *score;
IBOutlet NSTextField *question;
IBOutlet NSTextField *overallScore;
IBOutlet NSButton *answer1;
IBOutlet NSButton *answer2;
IBOutlet NSButton *answer3;
IBOutlet NSButton *restartButton;
int currentQuestion; // Begins with 0
/* ------------------------------------- */
IBOutlet NSWindow *answersWindow;
IBOutlet NSTableView *answersTable;
NSMutableArray *resultsArray;
}
@property (assign) IBOutlet NSWindow *window;
- (IBAction)checkAnswer:(id)sender;
- (IBAction)restart:(id)sender;
- (void)proceedToNextQuestionWithAdditionOfScore:(BOOL)addScore;
@end