Re: Can NSView and NSImageView respond to Mouse Clicks?


Sean McBride
 

On Thu, 20 Sep 2018 11:36:10 +0200, Dave said:

Basically, I want to detect a Mouse Down on an NSView Subclass and when
it occurs display a Pop-Up Menu.
Suggestion: open NSView.h and search for "menu", there are API like menuForEvent: and willOpenMenu: that look useful for your case.

Cheers,

Sean

Join cocoa@apple-dev.groups.io to automatically receive all group messages.