• 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: NSImageView mouseClick Location?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageView mouseClick Location?


  • Subject: Re: NSImageView mouseClick Location?
  • From: "Todd Heberlein" <email@hidden>
  • Date: Wed, 29 Aug 2001 09:45:08 -0700
  • Organization: Net Squared, Inc.

> I want to be able to figure out exactly where the mouse
> location is when the NSImageView is clicked.

Try subclassing NSImageView, and then overriding the mouseDown or
mouseUp method. For example,

- (void)mouseUp: (NSEvent *)event
{
NSPoint event_loc = [event locationInWindow];
....
}

Todd


References: 
 >NSImageView mouseClick Location? (From: stuartbryson <email@hidden>)

  • Prev by Date: Re: Abstract classes and methods
  • Next by Date: Re: Java and C
  • Previous by thread: Re: NSImageView mouseClick Location?
  • Next by thread: Re: cocoa-dev digest, Vol 1 #490 - 7 msgs
  • Index(es):
    • Date
    • Thread