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.
对于自定义 NSBox,我有以下问题,我无法让我的 mouseDragged 被调用。
知道 : mouseMoved:, mouseEntered:, mouseExited:,mouseUp都在需要时被调用。
mouseMoved:
mouseEntered:
mouseExited:
mouseUp
我找到了我的问题的解决方案:mouseDown:必须在子类中被覆盖。
mouseDown: