[vlc-commits] macOS: Autosave log window state and make it a panel

Marvin Scholz git at videolan.org
Sun Jan 29 23:38:18 CET 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sun Jan 29 23:38:01 2017 +0100| [add6f3a869d8f397b6cd6463a50eb66a6579ce87] | committer: Marvin Scholz

macOS: Autosave log window state and make it a panel

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=add6f3a869d8f397b6cd6463a50eb66a6579ce87
---

 extras/package/macosx/Resources/English.lproj/LogMessageWindow.xib | 7 ++++---
 modules/gui/macosx/VLCDebugMessageWindowController.m               | 1 +
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/extras/package/macosx/Resources/English.lproj/LogMessageWindow.xib b/extras/package/macosx/Resources/English.lproj/LogMessageWindow.xib
index 0f2306f..02a031d 100644
--- a/extras/package/macosx/Resources/English.lproj/LogMessageWindow.xib
+++ b/extras/package/macosx/Resources/English.lproj/LogMessageWindow.xib
@@ -2,8 +2,8 @@
 <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11762" systemVersion="16C67" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
     <dependencies>
         <deployment identifier="macosx"/>
-        <development version="7000" identifier="xcode"/>
         <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11762"/>
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
         <customObject id="-2" userLabel="File's Owner" customClass="VLCDebugMessageWindowController">
@@ -19,8 +19,9 @@
         </customObject>
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="QvC-M9-y7g">
+        <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="utilityWindow" frameAutosaveName="LogWindow" id="QvC-M9-y7g" customClass="NSPanel">
             <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
+            <windowCollectionBehavior key="collectionBehavior" fullScreenAuxiliary="YES"/>
             <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
             <rect key="contentRect" x="196" y="240" width="480" height="330"/>
             <rect key="screenRect" x="0.0" y="0.0" width="1280" height="777"/>
@@ -28,7 +29,7 @@
                 <rect key="frame" x="0.0" y="0.0" width="480" height="330"/>
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
-                    <splitView arrangesAllSubviews="NO" dividerStyle="thin" translatesAutoresizingMaskIntoConstraints="NO" id="5ZT-Oc-K6D">
+                    <splitView arrangesAllSubviews="NO" autosaveName="LogWindowSplitView" dividerStyle="thin" translatesAutoresizingMaskIntoConstraints="NO" id="5ZT-Oc-K6D">
                         <rect key="frame" x="0.0" y="0.0" width="480" height="330"/>
                         <subviews>
                             <customView id="dx0-3n-J3G">
diff --git a/modules/gui/macosx/VLCDebugMessageWindowController.m b/modules/gui/macosx/VLCDebugMessageWindowController.m
index e8002cf..55752cc 100644
--- a/modules/gui/macosx/VLCDebugMessageWindowController.m
+++ b/modules/gui/macosx/VLCDebugMessageWindowController.m
@@ -105,6 +105,7 @@ static void MsgCallback(void *data, int type, const vlc_log_t *item, const char
     [self.window setExcludedFromWindowsMenu:YES];
     [self.window setDelegate:self];
     [self.window setTitle:_NS("Messages")];
+    [self.window setLevel:NSModalPanelWindowLevel];
 
 #define setupButton(target, title, desc)                                              \
     [target accessibilitySetOverrideValue:title                                       \



More information about the vlc-commits mailing list