Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10455549
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
837 B
Subscribers
None
View Options
diff --git a/macOS/AppDelegate.swift b/macOS/AppDelegate.swift
index a9ab893..c827427 100644
--- a/macOS/AppDelegate.swift
+++ b/macOS/AppDelegate.swift
@@ -1,12 +1,22 @@
import AppKit
class AppDelegate: NSObject, NSApplicationDelegate {
+ func applicationDidFinishLaunching(_ notification: Notification) {
+ NSApplication.shared.delegate = self
+ }
+
func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool {
+ print(#function, "flag -> \(flag)")
if !flag {
for window: AnyObject in sender.windows {
window.makeKeyAndOrderFront(self)
}
}
return true
}
+
+ func applicationShouldOpenUntitledFile(_ sender: NSApplication) -> Bool {
+ print(#function)
+ return true
+ }
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Jan 31, 2:51 PM (9 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3145783
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment