• 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: Mouse button down?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Mouse button down?
      • From: mmalcolm crawford <email@hidden>
References: 
 >Mouse button down? (From: Sam McCandlish <email@hidden>)

  • Prev by Date: Mouse button down?
  • Next by Date: Re: Full screen borderless window
  • Previous by thread: Mouse button down?
  • Next by thread: Re: Mouse button down?
  • Index(es):
    • Date
    • Thread