• 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: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden


  • Subject: Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
  • From: John Randolph <email@hidden>
  • Date: Wed, 19 May 2004 16:08:59 -0700

On May 9, 2004, at 3:46 PM, Allan Odgaard wrote:

On 10. May 2004, at 0:29, cricket wrote:

However, if I create an NSTableView subclass, and override these same two methods, I only get the NSLog for the mouseDown: call. Anyone know why this is? I can't find anything in the documentation to explain this.

Probably the superclass will setup a local event loop in mouseDown. I think several of the view classes do this.

That is exactly what's going on. If you want to implement -mouseDown: and -mouseUp:, don't call [super mouseDown:].

This is one of those things that should probably be fixed, but fixing it would break too many existing apps..

-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.


  • Follow-Ups:
    • Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
      • From: cricket <email@hidden>
References: 
 >mouseUp: not called in NSTableView subclass when mouseDown: is overridden (From: cricket <email@hidden>)
 >Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: Default Mail/Web apps
  • Next by Date: Re: rounding to a multiple of x?
  • Previous by thread: Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
  • Next by thread: Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
  • Index(es):
    • Date
    • Thread