Files
markdownlive/MLAppDelegate.m
David BeckandJan Weiß cb0e3d2394 Added fullscreen support for Lion
Now if the user is running Lion, there will be a view menu with a fullscreen option in the main menu as well as each window will have a fullscreen marker.
2012-08-31 11:07:12 +02:00

23 lines
494 B
Objective-C

//
// MLAppDelegate.m
// MarkdownLive
//
// Created by David Beck on 9/23/11.
// Copyright 2011 David Beck. Some rights reserved: <http://opensource.org/licenses/mit-license.php>
//
#import "MLAppDelegate.h"
@implementation MLAppDelegate
@synthesize viewMenu = _viewMenu;
- (void)applicationDidFinishLaunching:(NSNotification *)notification
{
if ([NSWindow instancesRespondToSelector:@selector(toggleFullScreen:)]) {
[[NSApp mainMenu] insertItem:self.viewMenu atIndex:3];
}
}
@end