Re: Sorting an NSOutlineView
Re: Sorting an NSOutlineView
- Subject: Re: Sorting an NSOutlineView
- From: Emma Whan <email@hidden>
- Date: Wed, 5 Feb 2003 09:52:54 +1100
I use [outlineView: shouldSelectTableColumn:] but I return NO from that
method (after I do the sorting) so that the column never actually gets
selected. That way the method always get called when the column header
is clicked because the column can never be already selected. This
works really well provided you don't mind your users not being able to
actually select a column.
>
FROM: Sfraser
>
DATE: 2003-02-04 18:49
>
>
On Monday, February 3, 2003, at 10:01 pm, Simon Fraser wrote:
>
>
> Is there a trick to get [tableView:didClickTableColum:] to be called
>
> on the delegate
>
> of an NSOutlineView, so that I can implement sorting? This works fine
>
> for
>
> an NSTableView, but not for an NSOutlineView.
>
>
>
> The only thing I can think of is to implement [outlineView:
>
> shouldSelectTableColumn:]
>
> in the delegate, but this is called before the click, not after.
>
>
Actually, I discovered that [outlineView: shouldSelectTableColumn:] is
>
not
>
sufficient for this, as it doesn't get called when you click on the
>
header
>
of an already-selected column.
>
>
There has to be a way to do this. Anyone?
>
>
Simon
_______________________________________________
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.