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

How to prevent the NSPanel from being hidden when the focus leaves the NSPanel window? #9

Closed
zhouyangtingwen opened this issue Aug 7, 2023 · 2 comments
Labels

Comments

@zhouyangtingwen
Copy link

Now, when the focus leaves the NSPanel window, the NSPanel window will be hidden.
How to prevent the NSPanel from being hidden when the focus leaves the NSPanel window? @ahkohd

@ahkohd
Copy link
Owner

ahkohd commented Aug 10, 2023

Hello @zhouyangtingwen,

Comment out lines (384 to 385) to prevent the panel from hiding.

let _: () = unsafe { msg_send![panel, orderOut: nil] };

@zhouyangtingwen
Copy link
Author

Hello @zhouyangtingwen,

Comment out lines (384 to 385) to prevent the panel from hiding.

let _: () = unsafe { msg_send![panel, orderOut: nil] };

thank you so much @ahkohd

@ahkohd ahkohd added the example label Sep 10, 2023
@ahkohd ahkohd pinned this issue Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants