• 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: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:?


  • Subject: Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:?
  • From: Jim Correia <email@hidden>
  • Date: Thu, 2 Jun 2005 22:08:55 -0400

On Jun 2, 2005, at 5:50 PM, Corbin Dunn wrote:

Is there any way to avoid this?

okay, the simple answer is that we really need to add support for this.

Additional bug reports/requests not necessary?

the "work around" answer is to change your delegate method to below.

Some comments: selectRowIndexes is called when the selection is to really change. shouldSelectRow is lacking "byExtendingSelection", as we already determined. To work around this, you can determine if a drag is happening and the right thing should happen.

Thanks Corbin. Your example didn't take care of the cases of extending the selection with shift arrows or shift/command clicking, but pointed the way. I modified it and it seems to work. I'll do some more testing to make sure I didn't miss an edge case, but so far so good.


Thanks,
Jim
_______________________________________________
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: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:?
      • From: Corbin Dunn <email@hidden>
References: 
 >NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:? (From: Jim Correia <email@hidden>)
 >Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:? (From: Corbin Dunn <email@hidden>)
 >Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:? (From: Jim Correia <email@hidden>)
 >Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:? (From: Corbin Dunn <email@hidden>)
 >Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:? (From: Jim Correia <email@hidden>)
 >Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:? (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Program structure
  • Next by Date: Re: combo box and objects?
  • Previous by thread: Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:?
  • Next by thread: Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:?
  • Index(es):
    • Date
    • Thread