| 1 |
#if defined(Hiro_Console) |
| 2 |
|
| 3 |
@implementation CocoaConsole |
| 4 |
|
| 5 |
-(id) initWith:(phoenix::Console&)consoleReference { |
| 6 |
if(self = [super initWithFrame:NSMakeRect(0, 0, 0, 0)]) { |
| 7 |
console = &consoleReference; |
| 8 |
} |
| 9 |
return self; |
| 10 |
} |
| 11 |
|
| 12 |
@end |
| 13 |
|
| 14 |
namespace hiro { |
| 15 |
|
| 16 |
auto pConsole::print(string text) -> void { |
| 17 |
} |
| 18 |
|
| 19 |
auto pConsole::reset() -> void { |
| 20 |
} |
| 21 |
|
| 22 |
auto pConsole::setBackgroundColor(Color color) -> void { |
| 23 |
} |
| 24 |
|
| 25 |
auto pConsole::setForegroundColor(Color color) -> void { |
| 26 |
} |
| 27 |
|
| 28 |
auto pConsole::setPrompt(string prompt) -> void { |
| 29 |
} |
| 30 |
|
| 31 |
auto pConsole::constructor() -> void { |
| 32 |
cocoaView = cocoaConsole = [[CocoaConsole alloc] initWith:console]; |
| 33 |
} |
| 34 |
|
| 35 |
auto pConsole::destructor() -> void { |
| 36 |
[cocoaView removeFromSuperview]; |
| 37 |
[cocoaView release]; |
| 38 |
} |
| 39 |
|
| 40 |
} |
| 41 |
|
| 42 |
#endif |