so i have a simple NSMenu. It is attached to a Status Item Button. When i click the Button it pops Open. Now my Problem is that as soon as i click outside of the NSMenu, it closes. How can i avoid that ? I did try many things but cant get that to work.
The reason i need that is that when the user clicks something in the NSMenu, another window opens, and while this window is open i also want the NSMenu to stay open. But it just does not work.
I feel like its impossible.
Many Thanks in advance.
我相信您必须创建一个弹出的自定义视图,但是可以使用NSMenu在本地完成某些操作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.