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: Jonathan Mitchell <email@hidden>
- Date: Thu, 05 Jun 2014 16:37:54 +0100
On 5 Jun 2014, at 14:03, Graham Cox <email@hidden> wrote:
>
> On 5 Jun 2014, at 7:42 pm, Michael Starke <email@hidden> wrote:
>
>> Take a look at the tool you daily use :) Xcode has continuous background gradients in it's source-list style OutlineView
>
>
> Good call :) well, that shows exactly what I'm talking about... but also suggests that it isn't view-based but cell based.
>
> BTW, I tried overriding the -highlightSelectionInClipRect: method but it isn't called at all for a view-based table. I also tried a hack where my custom row view called back into the superview (the table view) to draw a contiguous highlight but I couldn't get that to work properly, because it messes fairly substantially with the drawing order.
>
> Stumped.
>
You could use your current approach to calculate + draw different gradients for each row to give the overall effect of a single gradient.
No idea how messy this would be to implement!
Jonathan
_______________________________________________
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