Reading List

Activation Behavior of a Global Command Palette from Michael Tsai RSS feed.

Activation Behavior of a Global Command Palette

Art Lasovsky: To improve this, we can add NSApplicationDelegate to our app and set the activation policy to .prohibited in the applicationWillFinishLaunching(_:) method. Then, in the applicationDidFinishLaunching(_:) method, we can set the activation policy to .accessory(or .regular if we want the dock icon to be visible).This way, the app will launch without stealing focus.[…]We override […]