• 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: MouseDown of superclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MouseDown of superclass


  • Subject: Re: MouseDown of superclass
  • From: Tobias Hermann <email@hidden>
  • Date: Thu, 20 Mar 2003 13:17:59 +0100

- (void) mouseDown:(NSEvent *) event
{
NSEvent *newEvent = nil;
while ((newEvent = [[self window] nextEventMatchingMask: NSLeftMouseUpMask | NSLeftMouseDraggedMask]))
{
switch ([newEvent type])
{
case NSLeftMouseDragged:
[[self window] postEvent: newEvent atStart: NO];
[super mouseDown: event];

but would't this call to super mouseDown have this effect again ? this super mousedown hanlder takes again his own loop and grabs everything...
:-(

So once I call this, i don't get any dragged or up events anymore. or did I get something wrong here...

Thanx for answering so quickly!

Tobi
_______________________________________________
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: MouseDown of superclass
      • From: "Yvelise Deledicq" <email@hidden>
References: 
 >Re: MouseDown of superclass (From: j o a r <email@hidden>)

  • Prev by Date: Undocumented Launch Services API?
  • Next by Date: Re: MouseDown of superclass
  • Previous by thread: Re: MouseDown of superclass
  • Next by thread: Re: MouseDown of superclass
  • Index(es):
    • Date
    • Thread