Re: Mouse button down?
Re: Mouse button down?
- Subject: Re: Mouse button down?
- From: Peter Wollschlaeger <email@hidden>
- Date: Sat, 3 Apr 2004 22:24:55 +0200
you should override in a custom view mouseDown like:
- (void)mouseDown:(NSEvent *)theEvent
{
NSPoint p = [theEvent locationInWindow];
p.x -= [self frame].origin.x;
p.y -= [self frame].origin.y;
}
Peter
Am 03.04.2004 um 21:15 schrieb Sam McCandlish:
>
Does anyone know if there is a way to test if the mouse button is down?
>
>
Thanks!
>
Sam
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.