Commit 7ba4c788 authored by Aral Balkan's avatar Aral Balkan

App is now topmost while launching. Closes #178.

parent 0078163f
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?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">
<dependencies> <dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="7706"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="7706"/>
<plugIn identifier="com.apple.imagekit.ibplugin" version="7706"/> <plugIn identifier="com.apple.imagekit.ibplugin" version="7706"/>
......
...@@ -25,5 +25,14 @@ class MainWindow: NSWindow ...@@ -25,5 +25,14 @@ class MainWindow: NSWindow
// Fade in the window (via extension: NSWindow+ADBWindowEffects) // Fade in the window (via extension: NSWindow+ADBWindowEffects)
self.fadeInWithDuration(0.75) self.fadeInWithDuration(0.75)
// 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.
delay(0.75)
{
self.level = Int(CGWindowLevelForKey(CGWindowLevelKey(kCGNormalWindowLevelKey)))
}
} }
} }
...@@ -37,6 +37,9 @@ class PreloaderWindow: NSWindow ...@@ -37,6 +37,9 @@ class PreloaderWindow: NSWindow
opaque = false opaque = false
backgroundColor = NSColor.clearColor() backgroundColor = NSColor.clearColor()
styleMask = NSBorderlessWindowMask 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