Drawing custom contiguous selection highlight in view-based NSOutlineView
Drawing custom contiguous selection highlight in view-based NSOutlineView
- Subject: Drawing custom contiguous selection highlight in view-based NSOutlineView
- From: Graham Cox <email@hidden>
- Date: Thu, 05 Jun 2014 12:05:30 +1000
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. 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