Skip to content

Commit

Permalink
adding full screen for lion
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Jun 14, 2011
1 parent 3e0989b commit 88b791c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/ProjectTree.mm
Expand Up @@ -44,12 +44,10 @@ - (void)ProjectTree_windowDidLoad
if(not [ProjectTree preserveTreeState])
return;

[[NSApplication sharedApplication] setPresentationOptions:NSApplicationPresentationFullScreen];

#if MAC_OS_X_VERSION_MIN_REQUIRED == MAC_OS_X_VERSION_10_7
NSWindow *window = [self window];
NSButton* fullscreenButton = [window standardWindowButton:NSWindowFullScreenButton];
//[fullscreenButton setAction:@selector(enterFullscreen:)];
//[fullscreenButton setTarget:self];
[window setCollectionBehavior:([window collectionBehavior] | NSWindowCollectionBehaviorFullScreenPrimary)];
#endif

NSArray *rootItems = [self valueForKey:@"rootItems"];

Expand Down

0 comments on commit 88b791c

Please sign in to comment.