开发者

Having context menu for NSButton created dynamically

开发者 https://www.devze.com 2023-01-11 22:17 出处:网络
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 me

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. Ho开发者_如何学Gow to achieve this?


Subclass NSButton and override mousedown or menu for event

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号