Responding to mouseDown in an NSImageView
Responding to mouseDown in an NSImageView
- Subject: Responding to mouseDown in an NSImageView
- From: Lynn Barton <email@hidden>
- Date: Tue, 21 Jul 2009 11:35:35 -0700
My window has an NSImageView object within an NSScrollView. After
setting the image and the image frame, I want to detect and respond to
mouseDown on the image. The image appears in the view, but I found
nothing responding to the mouseDown.
I tried subclassing NSImageView and putting a -(void)mouseDown:
(NSEvent *)theEvent method in the subclass. That allowed me to get and
process the event, but the image did not appear in the view. Can
anyone help?
Lynn Barton
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden