• 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: Double-clicking multiple selection in a TableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double-clicking multiple selection in a TableView


  • Subject: Re: Double-clicking multiple selection in a TableView
  • From: Corbin Dunn <email@hidden>
  • Date: Tue, 6 Dec 2005 14:42:29 -0800

When a table view has a multiple selection, and one of the selected items is double-clicked, all of the other selected items are deselected by the time my doubleAction gets called. Is this behaviour easy to prevent? It seems as though this is the 'standard' behaviour as other apps do the same sort of thing, so maybe I shouldn't try to circumvent it, but as far as UI decisions goes this just seems dumb.

Yes -- it is a bug, which will be fixed.


I realise that what is really happening is that the first click is the one that deselects everything. Wouldn't it be nicer if TableViews delayed the deselection until after the Double-click time has passed?

There is no easy way to do this. The underlying problem is that there isn't enough NSCell API to determine if a click on a particular row should deselect everything or not. Finder has does allow doubleclicking and maintaining the selection, but it is done in a subtle way; if you single/double click on some content (ie: an icon, or a caption), it will maintain the selection. If you single/double click on a non-content area, it will deselect everything except that row.

Sorry, there isn't an easy way to do what you want without reimplementing a lot of the mouseDown stuff.

--corbin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Double-clicking multiple selection in a TableView
      • From: Brian Stern <email@hidden>
    • Re: Double-clicking multiple selection in a TableView
      • From: Corbin Dunn <email@hidden>
References: 
 >Double-clicking multiple selection in a TableView (From: Matt Gough <email@hidden>)

  • Prev by Date: Re: NSTimer problem with event run loop
  • Next by Date: Re: NSTableView drag and drop Border
  • Previous by thread: Re: Double-clicking multiple selection in a TableView
  • Next by thread: Re: Double-clicking multiple selection in a TableView
  • Index(es):
    • Date
    • Thread