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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to