re-add macOS Fullscreen support (#3261)

* re-add macOS Fullscreen support

re added Full Screen support for macOS. Also refactored window methods in Controller.mm and moved to their own category - ControllerWindowMethods.mm

This has currently only been tested on macOS Monterey, and should be good on earlier versions - but perhaps needs testing on earlier versions of macOS.

fixes #3231 #3234
This commit is contained in:
SweetPPro
2022-06-13 02:54:52 +02:00
committed by GitHub
parent da74fd21cc
commit c3cd9cffad
13 changed files with 401 additions and 444 deletions
+3 -3
View File
@@ -58,9 +58,6 @@
[window setFrameUsingName:@"MessageWindowFrame"];
window.restorationClass = [self class];
//disable fullscreen support
[window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenNone];
[NSNotificationCenter.defaultCenter addObserver:self selector:@selector(resizeColumn)
name:NSTableViewColumnDidResizeNotification
object:self.fMessageTable];
@@ -69,6 +66,9 @@
self.window.title = NSLocalizedString(@"Message Log", "Message window -> title");
//make window an auxillary view in fullscreen
[window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary];
//set images and text for popup button items
[self.fLevelButton itemAtIndex:LEVEL_ERROR].title = NSLocalizedString(@"Error", "Message window -> level string");
[self.fLevelButton itemAtIndex:LEVEL_WARN].title = NSLocalizedString(@"Warn", "Message window -> level string");