문제

I am creating NSButton dynamically in the cocoa application which is fine. However once the application launches, I want to perform right click on the NSButton created or would like to have context menu for the NSBUtton. How to achieve this?

도움이 되었습니까?

해결책

Subclass NSButton and override mousedown or menu for event

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top