Re: Drawing custom contiguous selection highlight in view-based NSOutlineView
Re: Drawing custom contiguous selection highlight in view-based NSOutlineView
- Subject: Re: Drawing custom contiguous selection highlight in view-based NSOutlineView
- From: Lee Ann Rucker <email@hidden>
- Date: Wed, 04 Jun 2014 19:54:30 -0700
On Jun 4, 2014, at 7:05 PM, Graham Cox wrote:
> I have a view-based NSOutlineView, in which I'm using a custom NSTableRowView subclass to customise the appearance of the selection. This works fine.
>
> However, because I'm using a gradient effect for the highlight, when there are several contiguous rows selected, each row draws a separate gradient giving a sort of "corrugated" effect. This is unlike a standard source-style list, which applies a gradient to each contiguous range of the selection.
It does? When I saw your subject line I thought you were were talking about SourceView style, because I have one - it's view-based - and I'd been wondering if it was possible to get a unified multi-selection gradient.
> I think this would look better for our case as well, but according to the documentation, the outline view override -highlightSelectionInClipRect: should not be overridden for view-based tables. Yet this seems the only way to get a contiguous highlight effect.
>
> Am I missing something, or is what I want not possible with a view-based table?
>
> --Graham
_______________________________________________
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