Make HTML output window a panel

This allows the main (document) window to handle menu keys (which are not handled by the HTML output window controller).
This commit is contained in:
Allan Odgaard
2013-01-07 06:17:55 +01:00
parent 987b12f694
commit 03cf1fefb0

View File

@@ -21,7 +21,7 @@ static std::multimap<oak::uuid_t, HTMLOutputWindowController*> Windows;
{
if(self = [super init])
{
self.window = [[NSWindow alloc] initWithContentRect:NSMakeRect(100, 100, 100, 100) styleMask:(NSTitledWindowMask|NSClosableWindowMask|NSResizableWindowMask|NSMiniaturizableWindowMask) backing:NSBackingStoreBuffered defer:NO];
self.window = [[NSPanel alloc] initWithContentRect:NSMakeRect(100, 100, 100, 100) styleMask:(NSTitledWindowMask|NSClosableWindowMask|NSResizableWindowMask|NSMiniaturizableWindowMask) backing:NSBackingStoreBuffered defer:NO];
self.htmlOutputView = [[OakHTMLOutputView alloc] init];
[self.window setFrameAutosaveName:@"Command Output (HTML)"];