Re: Does NSOutlineView's highlightedTableColumn work?
Re: Does NSOutlineView's highlightedTableColumn work?
- Subject: Re: Does NSOutlineView's highlightedTableColumn work?
- From: Ken Thomases <email@hidden>
- Date: Mon, 04 Apr 2016 10:28:36 -0500
On Apr 4, 2016, at 8:39 AM, David Catmull <email@hidden> wrote:
>
> Is setting the highlightedTableColumn property on an NSOutlineView supposed to work? I’m expecting the column background to darken, but nothing seems to happen.
>
> Showing the column headers didn’t help (I normally have them hidden), and neither did setting a sort key for the column.
Are you sure a (rather small) sort indicator didn't appear in the column's header? Basically, the style of column highlighting (to indicate sorting) has changed. It doesn't darken the background of the column. It just displays a small indicator in the header.
> I’m trying to use the column highlight to indicate a view state unrelated to sorting…
Don't do that. Don't try to hijack features intended for one semantic for another. First, you'll confuse the users. Second, you subject yourself to the framework changing how the feature is implemented. It would presumably still be suitable for the intended semantic, but may not be for yours.
If you're using a view-based outline view, try using a custom table row view that overrides -drawBackgroundInRect:.
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden