• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Drawing custom contiguous selection highlight in view-based NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Drawing custom contiguous selection highlight in view-based NSOutlineView
      • From: Lee Ann Rucker <email@hidden>
  • Prev by Date: Re: Silly ARC question - explanation requested
  • Next by Date: Re: Drawing custom contiguous selection highlight in view-based NSOutlineView
  • Previous by thread: Re: Silly ARC question - explanation requested
  • Next by thread: Re: Drawing custom contiguous selection highlight in view-based NSOutlineView
  • Index(es):
    • Date
    • Thread