Re: NSImageView mouseClick Location?
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