• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Responding to mouseDown in an NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Responding to mouseDown in an NSImageView
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: [IB] - possible bug [was: how to delete action or outlet?]
  • Next by Date: Expanding NSScrollView
  • Previous by thread: Re: The iPhone SDK "OpenGL ES Application" template
  • Next by thread: Re: Responding to mouseDown in an NSImageView
  • Index(es):
    • Date
    • Thread