listless

A simple list app for Apple platforms
Log | Files | Refs | README | LICENSE

commit e06b70a7d0991b38ec48f512205deaa2977e18d7
parent 3b84343d8354578deb962acdb4906e234fbd1731
Author: Michael Camilleri <[email protected]>
Date:   Sat, 18 Apr 2026 18:51:03 +0900

Remove remote notification registration on macOS

Diffstat:
MListlessMac/ListlessMacApp.swift | 16----------------
1 file changed, 0 insertions(+), 16 deletions(-)

diff --git a/ListlessMac/ListlessMacApp.swift b/ListlessMac/ListlessMacApp.swift @@ -41,29 +41,13 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuItemValidation { } func applicationDidFinishLaunching(_ notification: Notification) { - let ae = NSAppleEventManager.shared().currentAppleEvent - let aeID = ae.map { String(format: "0x%08x", $0.eventID) } ?? "nil" - let userInfoKeys = (notification.userInfo?.keys.map { "\($0)" } ?? []).joined(separator: ",") - NSLog("[Listless launch] aeID=\(aeID) userInfoKeys=[\(userInfoKeys)] argv=\(CommandLine.arguments)") - NSWindow.allowsAutomaticWindowTabbing = false applyAppearanceMode(UserDefaults.standard.integer(forKey: Self.appearanceModeKey)) keyValueSyncBridge.start() - NSApplication.shared.registerForRemoteNotifications() installMainMenu() openNewWindow() } - func application( - _ application: NSApplication, - didReceiveRemoteNotification userInfo: [String: Any] - ) { - // NSPersistentCloudKitContainer handles the sync internally; - // implementing this delegate method ensures macOS delivers the - // silent push to this process. - } - - func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool { if !flag { openNewWindow()