-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppController.h
More file actions
35 lines (28 loc) · 814 Bytes
/
AppController.h
File metadata and controls
35 lines (28 loc) · 814 Bytes
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
/*
Notepad.app
a simple text editor featuring tabs
all hand coded w/o NIB file
2010 by Thomas Führinger (gmail ID: thomasfuhringer)
*/
#ifndef _AppController_H_
#define _AppController_H_
#include <Foundation/NSObject.h>
#include <AppKit/AppKit.h>
@interface AppController : NSObject
{
NSWindow *window;
NSTabView *tabView;
NSFont *font;
NSWindow *prefsWindow;
}
- (void) applicationWillFinishLaunching:(NSNotification *) not;
- (void) applicationDidFinishLaunching:(NSNotification *) not;
- (void) openFile;
- (void) saveFile;
- (void) editPreferences;
- (NSFont *) font;
- (void) setFont: (NSFont *) newFont;
- (BOOL) windowShouldClose:(id) sender;
- (NSApplicationTerminateReply) applicationShouldTerminate: (NSApplication *) app;
@end
#endif /* _AppController_H_ */