• 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 14:06:25 -0400

On Jun 2, 2005, at 1:53 PM, Corbin Dunn wrote:

tableView:shouldSelectRow:byExtendingSelection:

We have a feature request to add this type of delegate method.

That's good to hear.

Is there a way to determine from my delegate method whether or not we are extending the current selection? Some other way to get this functionality without the daunting task of subclassing and rewriting the mouseDown: method?


You should be able to subclass nstableview and override:

- (void)selectRowIndexes:(NSIndexSet *)indexes byExtendingSelection:(BOOL)extend;

Let me know if that works for you.

That did not work. I implemented

- (void)selectColumnIndexes:(NSIndexSet *)indexes byExtendingSelection:(BOOL)extend
{
NSLog(@"%s", __PRETTY_FUNCTION__);
[super selectColumnIndexes: indexes byExtendingSelection: extend];
}


in my subclass, and it isn't called during mouseDown handling. I see a private method I can override to get what I want done, but with that comes all the perils of hacking with private methods.

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

  • Prev by Date: Re: Changing the size of the content view in side of a ScrollView
  • Next by Date: Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:?
  • 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