Show NSSegmentedControl menu when segment clicked, despite having set action

Posted by enchilada on Stack Overflow See other posts from Stack Overflow or by enchilada
Published on 2010-03-08T21:29:07Z Indexed on 2010/05/23 18:20 UTC
Read the original article Hit count: 194

Filed under:
|
|
|

My question is based on another question. Instead of repeating a bunch of stuff, I hope it's okay that I refer you to that other question instead:

http://stackoverflow.com/questions/1203698/show-nssegmentedcontrol-menu-when-segment-clicked-despite-having-set-action/

My question is: How would the code within [self showGearMenu] look like, i.e. how would one actually use the popUpContextMenu:withEvent:forView method to accomplish what the poster of the other question wants?

I ask because it seems that the question was resolved for the poster, but he never shared with us how he actually popped up the menu :)

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa