You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On macOS it's normal for app to remain active even if all windows are closed. It's often the case that the app running without any windows attempts to open some sort of window as user clicks on the app icon in dock. For example for a text editor, the new untitled document can be created and the window presented to user.
Describe the solution you'd like
I'd like to have a hook that enables me to perform some action when the app becomes active.
In native development with Swift, the following method in the NSApplicationDelegate.applicationDidBecomeActive seems to be appropriate.
Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the problem
On macOS it's normal for app to remain active even if all windows are closed. It's often the case that the app running without any windows attempts to open some sort of window as user clicks on the app icon in dock. For example for a text editor, the new untitled document can be created and the window presented to user.
Describe the solution you'd like
I'd like to have a hook that enables me to perform some action when the app becomes active.
In native development with Swift, the following method in the
NSApplicationDelegate.applicationDidBecomeActive
seems to be appropriate.Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: