• 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: "John C. Randolph" <email@hidden>
  • Date: Thu, 20 Mar 2003 10:25:11 -0800

On Thursday, March 20, 2003, at 03:23 AM, Tobias Hermann wrote:

hi!

I have a subclass of NSBrowser. In that subclass, I override the mouseDown, mouseUp and mouseDragged method, in order to alter it's behaviour for some situations (not for all!). For the things I want to let handle the original NSBrowser, I call [super mouseXXXX: event]; (down, dragged or up).

Now something strange happens:

When I call [super mouseDown: event]; within my own mouseDown method, i get no mouseDragged or mouseUp events anymore... It seems that the super class NSBrowser grabs the control of the program within its mouseDown method UNTIL THE MOUSE BUTTON IS RELEASED!

That's correct. NSBrowser grabs the event loop in -mouseDown:. Many of the older NSControl subclasses in the AppKit do this.

If this is impeding your work, please file a bug/enhancement request at bugreporter.apple.com

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.

References: 
 >MouseDown of superclass (From: Tobias Hermann <email@hidden>)

  • Prev by Date: Re: Undocumented Launch Services API?
  • Next by Date: Cocoa/Java; random crashes
  • Previous by thread: Re: Remote file attributes
  • Next by thread: Undocumented Launch Services API?
  • Index(es):
    • Date
    • Thread