aboutsummaryrefslogtreecommitdiffstats
path: root/src/AppDelegate.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/AppDelegate.m')
-rw-r--r--src/AppDelegate.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/AppDelegate.m b/src/AppDelegate.m
index 270be25..86ba5f6 100644
--- a/src/AppDelegate.m
+++ b/src/AppDelegate.m
@@ -1,4 +1,5 @@
#import "AppDelegate.h"
+#import "main_menu.h"
@implementation AppDelegate
@@ -10,6 +11,10 @@
- (void)applicationWillFinishLaunching:(NSNotification *)notification
{
+ NSMenu *menubar = main_menu_create();
+ [NSApp setMainMenu:menubar];
+ [menubar release];
+
_window = [[NSWindow alloc]
initWithContentRect:NSMakeRect(0, 0, 400, 400)
styleMask:NSWindowStyleMaskTitled