Re: Responding to mouseDown in an NSImageView
Re: Responding to mouseDown in an NSImageView
- Subject: Re: Responding to mouseDown in an NSImageView
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 21 Jul 2009 18:07:00 -0700
On Jul 21, 2009, at 11:35 AM, Lynn Barton wrote:
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?
Not with the minimal information you've given. Show us the code.
-jcr
_______________________________________________
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