Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Heartbeat Cocoa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
117
Issues
117
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ind.ie Projects
Heartbeat Cocoa
Commits
7ba4c788
Unverified
Commit
7ba4c788
authored
Aug 28, 2015
by
Aral Balkan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
App is now topmost while launching. Closes
#178
.
parent
0078163f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
Heartbeat/Base.lproj/Main.storyboard
Heartbeat/Base.lproj/Main.storyboard
+1
-1
Heartbeat/MainWindow.swift
Heartbeat/MainWindow.swift
+9
-0
Heartbeat/PreloaderWindow.swift
Heartbeat/PreloaderWindow.swift
+3
-0
No files found.
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