I have several NSImageViews in my Mac app where the user can drag and drop objects like .png or .pdf to save them to custom general defaults that work fine.
Now I would like to set the action when the user double clicks on these NSImageViews, but it seems a bit complicated (I had no problems for NSTableView, but "setDoubleAction" is not available for NSImage, and tons of answers (here or with google) regarding actions NSImageView point to creating an NSButton instead of NSImageView, so that doesn't help)
Here is part of my AppDelegate.h:
@interface AppDelegate : NSObject <NSApplicationDelegate>{ (...) @property (assign) IBOutlet NSImageView *iconeStatus; (...) @end
and here is part of my AppDelegate.m:
But that does not work.
Can someone tell me this is the easiest way to do this?
source share