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.
我有一个NSButton和一个action关联的Button。我想action只在 mouseup (mouserelease) 上调用该方法。这可能吗?如果有可能怎么办?
NSButton
action
Button
单击是 mouseDown 后跟 mouseUp,因此在 mouseUp 之前不会调用正常的操作方法,所以我不知道您还想要什么其他行为。