Unverified Commit 7ba4c788 authored by Aral Balkan's avatar Aral Balkan
Browse files

App is now topmost while launching. Closes #178.

parent 0078163f
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="Eli-nr-tnn">
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="Eli-nr-tnn">
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="7706"/>
<plugIn identifier="com.apple.imagekit.ibplugin" version="7706"/>
......@@ -25,5 +25,14 @@ class MainWindow: NSWindow
// Fade in the window (via extension: NSWindow+ADBWindowEffects)
// Make sure that the window appears above all others…
self.level = Int(CGWindowLevelForKey(CGWindowLevelKey(kCGMaximumWindowLevelKey)))
// …Until it has faded in. After which, defer to regular level.
self.level = Int(CGWindowLevelForKey(CGWindowLevelKey(kCGNormalWindowLevelKey)))
......@@ -37,6 +37,9 @@ class PreloaderWindow: NSWindow
opaque = false
backgroundColor = NSColor.clearColor()
styleMask = NSBorderlessWindowMask
// Make sure that the window appears above all others.
self.level = Int(CGWindowLevelForKey(CGWindowLevelKey(kCGMaximumWindowLevelKey)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment