Having context menu for NSButton created dynamically
Question
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?
Solution
Subclass NSButton and override mousedown or menu for event
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow