From 6416cb6bf24c704f50710716a4147bf61ec572a4 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 26 Nov 2018 19:22:05 -0800 Subject: [PATCH] Install Apple event handlers early enough so that the app can be launched by a feed: URL and it will pop up the sheet. Fix #343. --- NetNewsWire/AppDelegate.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NetNewsWire/AppDelegate.swift b/NetNewsWire/AppDelegate.swift index 6864d8a59..39048ef69 100644 --- a/NetNewsWire/AppDelegate.swift +++ b/NetNewsWire/AppDelegate.swift @@ -117,6 +117,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, // MARK: - NSApplicationDelegate + func applicationWillFinishLaunching(_ notification: Notification) { + installAppleEventHandlers() + } + func applicationDidFinishLaunching(_ note: Notification) { appName = (Bundle.main.infoDictionary!["CFBundleExecutable"]! as! String)