• 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
Mouse input on/and scaled images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mouse input on/and scaled images


  • Subject: Mouse input on/and scaled images
  • From: "Brian O'Brien" <email@hidden>
  • Date: Wed, 6 Oct 2004 09:30:01 -0600

I've subclassed NSImageView so that I can handle mouseDown events... now, how do I translate those mouseDown coordinates into coordinates that relate to the image data? Basically, I want to be able to click on the image and know what pixel of the original image data was selected.




Secondly, I've done [myView setImageScaling:NSScaleProportionally] and [[myView image] setScalesWhenResized:Yes] but the images still don't scale up from their defined size... scaling down works fine. Any way to get them to scale up as well? Do I have to do something different now to map mouse clicks to the appropriate pixel?


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: Help With NSURLConnection Authentication
  • Next by Date: Re: NSImage in a NSMenuItem?
  • Previous by thread: Re: NSImage in a NSMenuItem?
  • Next by thread: localizedCompare: what's the locale?
  • Index(es):
    • Date
    • Thread