• 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
Re: Responding to mouseDown in an NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Responding to mouseDown in an NSImageView (From: Lynn Barton <email@hidden>)

  • Prev by Date: Re: AppleScript Record and NSDictionary
  • Next by Date: Confirm bug with [NSColor colorWithPatternImage:]?
  • Previous by thread: Responding to mouseDown in an NSImageView
  • Next by thread: Expanding NSScrollView
  • Index(es):
    • Date
    • Thread