Permalink
Browse files

adding full screen for lion

  • Loading branch information...
1 parent 3e0989b commit 88b791cdfba612d9b49add6e20c7fe05c0812a84 @markhuot committed Jun 14, 2011
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/ProjectTree.mm
View
@@ -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"];

0 comments on commit 88b791c

Please sign in to comment.