Re: How to change highlight colour on NSTableView row

2013-10-27 Thread Darren Wheatley
Hi, Thanks for the post. I've tried your suggestion but it doesn't change the default rendering I'm afraid. Here's what I did: - created an NSTextFieldCell subclass - Added the method you suggested - changed the table cells in the NSTableView defined in IB to use my new subclass Was t

Re: How to change highlight colour on NSTableView row

2013-10-23 Thread Uli Kusterer
I blogged about themeing NSTableView a while ago: http://orangejuiceliberationfront.com/themeing-nstableview/ That lists all the steps for changing highlight and other colors. Did you not see that via Google? Does that not work for you for some reason? I have a shipping application that uses th

Re: How to change highlight colour on NSTableView row

2013-10-22 Thread Corbin Dunn
On Oct 22, 2013, at 5:36 AM, Darren Wheatley wrote: > Hi, > > Thanks for the reply. > > I tried the code sample you suggested but can't get it to work. > > When running the default highlighting is being layered on top of this custom > highlighting (I can see part of the custom highlighting

Re: How to change highlight colour on NSTableView row

2013-10-22 Thread Darren Wheatley
Hi, Thanks for the reply. I tried the code sample you suggested but can't get it to work. When running the default highlighting is being layered on top of this custom highlighting (I can see part of the custom highlighting where the rects are not quite overlapping). Do you know how I prevent t

Re: How to change highlight colour on NSTableView row

2013-10-22 Thread Darren Wheatley
Hi, Thanks for the reply. I tried the code sample you suggested but can't get it to work. When running the default highlighting is being layered on top of this custom highlighting (I can see part of the custom highlighting where the rects are not quite overlapping). Do you know how I prevent t

Re: How to change highlight colour on NSTableView row

2013-10-21 Thread jonat...@mugginsoft.com
On 21 Oct 2013, at 16:19, Darren Wheatley wrote: > Hi, > > I have a custom subclass of NSTableView in my app. > > 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

How to change highlight colour on NSTableView row

2013-10-21 Thread Darren Wheatley
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, a