• 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
How to change highlight colour on NSTableView row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to change highlight colour on NSTableView row


  • Subject: How to change highlight colour on NSTableView row
  • From: Darren Wheatley <email@hidden>
  • Date: Mon, 21 Oct 2013 16:19:05 +0100

Hi,

I have a custom subclass of NSTableView in my app.

I would like to change the highlight colour displayed when the user clicks on a row, and have the colour maintained when the NSTableView subclass loses focus.

I have changed the subclass to ensure that the table is never first responder, and so the user only ever sees the "lost focus" highlight colour (gray by default). This maintains the same highlight colour when the table has focus, and when it doesn't.

I would now like to change the default gray colour to a custom colour.

My tableview is currently cell-based. I am targeting 10.7+ so I could switch to view-based if that would give me more options?

Can anyone suggest a method that will allow me to set a custom highlight colour on on a row when the user clicks on it?

I've Googled for a solution, but haven't been able to find anything that works.

Thanks

Darren.


_______________________________________________

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: How to change highlight colour on NSTableView row
      • From: Uli Kusterer <email@hidden>
    • Re: How to change highlight colour on NSTableView row
      • From: "email@hidden" <email@hidden>
  • Prev by Date: Re: NSPopUpButton binding value/selected problem
  • Next by Date: Re: How to change highlight colour on NSTableView row
  • Previous by thread: Re: Determine keys used in NSPredicate
  • Next by thread: Re: How to change highlight colour on NSTableView row
  • Index(es):
    • Date
    • Thread