I want my application to hide the icon in the macOS dock. I set ActivationPolicy
to NSApplicationActivationPolicyAccessory
after the app is initialized with cocoa
lib, and the icon is hidden. However, when a new window appears on the screen, the icon reappears. How can I maintain the NSApplicationActivationPolicyAccessory
status?
The idea is to use NSPanel instead of NSWindow in addition to activation policy. It is not currently possible with iced without forking it. In winit (window handling library iced uses) pull request that allows it just got merged, it will be some time before winit releases new version, iced updates to use it and somebody adds functionality to iced to use new winit functionality
Hi, the PR has been merged for GitHub - rust-windowing/winit: Window handling library in pure Rust, but Iced extends GitHub - iced-rs/winit: Window handling library in pure Rust, which is based on version 0.29.x. How can I implement this feature quickly?
Fork iced’s version of winit and apply the fix you want on top of it. Then fork iced and make it depend on your fork of winit. Cargo dependencies can be git repositories so it’s all really easy.