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を動的に作成していますが、これは問題ありません。ただし、アプリケーションが起動したら、作成したNSButtonを右クリックするか、NSBUttonのコンテキストメニューを表示したいと思います。これを達成する方法は?
NSButtonをサブクラス化し、イベントのマウスダウンまたはメニューをオーバーライドします