Debian Codegraph @

phoenix/cocoa/widget/console.cpp

raw
1 @implementation CocoaConsole : NSScrollView
2
3 -(id) initWith:(phoenix::Console&)consoleReference {
4 if(self = [super initWithFrame:NSMakeRect(0, 0, 0, 0)]) {
5 console = &consoleReference;
6 }
7 return self;
8 }
9
10 @end
11
12 namespace phoenix {
13
14 void pConsole::print(string text) {
15 }
16
17 void pConsole::reset() {
18 }
19
20 void pConsole::constructor() {
21 @autoreleasepool {
22 cocoaView = cocoaConsole = [[CocoaConsole alloc] initWith:console];
23 }
24 }
25
26 void pConsole::destructor() {
27 @autoreleasepool {
28 [cocoaView release];
29 }
30 }
31
32 }