Re: Where was the mouse clicked????
Re: Where was the mouse clicked????
- Subject: Re: Where was the mouse clicked????
- From: Stephane Sudre <email@hidden>
- Date: Mon, 25 Apr 2005 18:32:45 +0200
On 25 avr. 05, at 18:32, Brian O'Brien wrote:
I've read this document but cannot figure out what I need to know and
cant' find any other document or
posting that explains this simple concept.
http://developer.apple.com/documentation/Cocoa/Conceptual/
BasicEventHandling/index.html
I get a mouseDown event in my NSImageView subclass, but the
coordinates that it is giving me
seem to have nothing to do with the location I clicked on within the
image...
The image being displayed is 256x256 pixels.
- (void) mouseDown:(NSEvent *) theEvent
{
NSPoint mouseLoc=[self convertPoint:[theEvent locationInWindow]
fromView:nil];
[...]
}
_______________________________________________
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