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 make application window always on top #701

Open
katopz opened this issue Jan 23, 2025 · 1 comment
Open

How to make application window always on top #701

katopz opened this issue Jan 23, 2025 · 1 comment
Labels
A-framework Affects the framework crates and the translator for them question Further information is requested

Comments

@katopz
Copy link

katopz commented Jan 23, 2025

I want to make some monitoring tool so it should show the graph and appear on top of everything (and also draggable).
I try to search around but didn't see anything related to this, so can someone give me a hint? Thanks!

@madsmtm madsmtm added question Further information is requested A-framework Affects the framework crates and the translator for them labels Jan 23, 2025
@madsmtm
Copy link
Owner

madsmtm commented Jan 23, 2025

I haven't tried this specific thing myself, but a quick internet search for "How to make application window always on top cocoa", note the added "cocoa" which is Apple's name for AppKit development, reveals at least a few related questions:

Adapting that to Rust is then "just" a matter of converting the Objective-C code to call the functions exposed by objc2-app-kit.

Haven't read in detail, but changing the window level sounds like a good first approach, so does using NSPanel.


Have a look and see if you can figure it out, otherwise feel free to say what you run into problems with, then I'll try to give a more detailed answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-framework Affects the framework crates and the translator for them question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants