Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat][v2] add ability to handle app activation on macOS #9619

Closed
pronebird opened this issue Apr 30, 2024 · 1 comment
Closed

[feat][v2] add ability to handle app activation on macOS #9619

pronebird opened this issue Apr 30, 2024 · 1 comment

Comments

@pronebird
Copy link
Contributor

pronebird commented Apr 30, 2024

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

@amrbashir
Copy link
Member

I belive duplicate of #3084

@amrbashir amrbashir closed this as not planned Won't fix, can't repro, duplicate, stale Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants