• 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: cricket <email@hidden>
  • Date: Wed, 19 May 2004 17:29:54 -0700

The problem (at least the one I had) is that by not calling [super mouseDown], you then have to manually manage selections and manually handle drag and drop, which is somewhat unfun.

- cricket

On May 19, 2004, at 4:08 PM, John Randolph wrote:

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..
_______________________________________________
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: 
 >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>)
 >Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden (From: John Randolph <email@hidden>)

  • Prev by Date: Re: NSImage hue shifting?
  • Next by Date: Re: NSImage hue shifting?
  • 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