Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ind.ie Projects
Heartbeat Cocoa
Commits
7ba4c788
Unverified
Commit
7ba4c788
authored
Aug 28, 2015
by
Aral Balkan
Browse files
App is now topmost while launching. Closes
#178
.
parent
0078163f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Heartbeat/Base.lproj/Main.storyboard
View file @
7ba4c788
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"7706"
systemVersion=
"14
E46
"
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=
"14
F27
"
targetRuntime=
"MacOSX.Cocoa"
propertyAccessControl=
"none"
useAutolayout=
"YES"
initialViewController=
"Eli-nr-tnn"
>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.CocoaPlugin"
version=
"7706"
/>
<plugIn
identifier=
"com.apple.imagekit.ibplugin"
version=
"7706"
/>
...
...
Heartbeat/MainWindow.swift
View file @
7ba4c788
...
...
@@ -25,5 +25,14 @@ class MainWindow: NSWindow
// Fade in the window (via extension: NSWindow+ADBWindowEffects)
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
)))
}
}
}
Heartbeat/PreloaderWindow.swift
View file @
7ba4c788
...
...
@@ -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
)))
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment