Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Starfox

macrumors 6502
Original poster
Apr 7, 2011
256
9
I'm trying to make a clickable or double-clickable NSImageView in a view-based table view. I subclassed NSImageView and overrode mouseUp:, but it's not even getting called. I checked that the image view class in IB is set to MyImageView, it's enabled, doesn't refuse first responder and is editable. What am I missing?
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
You probably have to override mouseDown: and handle the event tracking yourself if you want it to behave like a normal button.
 

Starfox

macrumors 6502
Original poster
Apr 7, 2011
256
9
Nope, it works just fine when the image view isn't in a view-based table view.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.