• 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: Wed, 7 Dec 2005 07:39:51 -0800

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

I got an email from someone off-list that sparked an idea of how to implement this. Here is a recap of what I said:

"First, you must subclass tableview and add a boolean ivar for indicating if selection should not change. The first thing done in mouseDown: should be to call a delegate method asking the delegate if the selection should change in the mouseDown for the hit row/column and a given point (i'd pass in the event). If it returns NO, they set a boolean indicating to not change the selection, and call [super mouseDown:]. deselectRow:, selectRow:byExtendingSelection: are overridden to not call super if the boolean flag is set."

This will probably work, and isn't too hard to do. If this isn't enough for you to get started with it, I may be able to whip up an example.

--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
References: 
 >Double-clicking multiple selection in a TableView (From: Matt Gough <email@hidden>)
 >Re: Double-clicking multiple selection in a TableView (From: Corbin Dunn <email@hidden>)

  • Prev by Date: RE: Bundle Reloading
  • Next by Date: Re: Bundle Reloading
  • 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