-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathBBDemoController.h
45 lines (33 loc) · 1008 Bytes
/
BBDemoController.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
//
// BBDemoController.h
// Blackbox
//
// Created by Matt Patenaude on 3/15/10.
// Copyright 2010 Matt Patenaude. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "BBServer.h"
#import "BBResponder.h"
// Constants
#define BBDemoServerDefaultPort 8080
// Forward declarations
@class BBDemoLiveResponder;
@interface BBDemoController : NSObject<BBResponder> {
BBServer *server;
BOOL serverIsRunning;
IBOutlet NSImageView *statusImageView;
IBOutlet NSTextField *statusField;
IBOutlet NSTextField *serverPortField;
IBOutlet NSButton *publishBonjourService;
IBOutlet NSTextField *bonjourNameField;
IBOutlet NSTextField *bonjourTypeField;
// Our other responder
IBOutlet BBDemoLiveResponder *textBoxResponder;
}
// Application delegate methods
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication;
// Control methods
- (IBAction)startStopServer:(id)sender;
// Responder methods (BBResponder)
- (void)handleRequest:(BBRequest *)theRequest;
@end