Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在状态栏上有一个状态菜单,我有一些在幕后运行的任务。当其中一项任务完成时,假设在显示菜单(下拉)时,我想让菜单不处于下拉模式(假装在菜单图标上单击鼠标左键)。有没有办法做到这一点?
它在那里,但名字有点违反直觉:你想要 NSMenu 的cancelTracking.
cancelTracking