Re: [NSTableview] can't make selected text stay black

2010-03-15 Thread Corbin Dunn
best, > Keith > > From: Kent Hauser > To: Keith Blount ; Corbin Dunn > Cc: cocoa-dev@lists.apple.com > Sent: Sun, March 14, 2010 8:09:27 PM > Subject: Re: [NSTableview] can't make selected text stay black > > Now I'm all confused. Everything's working

Re: [NSTableview] can't make selected text stay black

2010-03-14 Thread Keith Blount
com Sent: Sun, March 14, 2010 8:09:27 PM Subject: Re: [NSTableview] can't make selected text stay black Now I'm all confused. Everything's working now where it wasn't before. I'm having the desired result (selected cell not appearing selected) by following C

Re: [NSTableview] can't make selected text stay black

2010-03-14 Thread Kent Hauser
ineView to provide an > OmniOutliner-style outline with a light blue selection, so the text needs to > be black even when highlighted given the light highlight, which is > custom-drawn.) > > Many thanks and all the best, > Keith > > > - Original Message ---- > From

Re: [NSTableview] can't make selected text stay black

2010-03-12 Thread Keith Blount
wn.) Many thanks and all the best, Keith - Original Message From: Corbin Dunn To: Keith Blount Cc: cocoa-dev@lists.apple.com; k...@khauser.net Sent: Fri, March 12, 2010 11:29:08 PM Subject: Re: [NSTableview] can't make selected text stay black > > P.S. I'm hesitan

Re: [NSTableview] can't make selected text stay black

2010-03-12 Thread Keith Blount
ealising. All the best, Keith - Original Message From: Corbin Dunn To: Keith Blount Cc: cocoa-dev@lists.apple.com; k...@khauser.net Sent: Fri, March 12, 2010 11:29:08 PM Subject: Re: [NSTableview] can't make selected text stay black > > P.S. I'm hesitant about ment

Re: [NSTableview] can't make selected text stay black

2010-03-12 Thread Corbin Dunn
> > P.S. I'm hesitant about mentioning private methods here, but I don't think > there's another way of doing it - I filed an enhancement request for this > method to be made public back in April '06, ID#4521167, so please do the same > if you think it would be useful. I'm CC'ing Corbin so he c

Re: [NSTableview] can't make selected text stay black

2010-03-12 Thread Corbin Dunn
Please don't override the private method. Your app is likely to break if you do so. > > Your solution was perfect. (It didn't work at first, but that's because I had > somehow left HighlightStyle as source list in IB while I was trying > everything. Per your note, the first thing I checked & th

Re: [NSTableview] can't make selected text stay black

2010-03-09 Thread Kent Hauser
Keith, Your solution was perfect. (It didn't work at first, but that's because I had somehow left HighlightStyle as source list in IB while I was trying everything. Per your note, the first thing I checked & then perfection.) As you mention, overriding -highlightSelctionInClipRect is unneeded. I

Re: [NSTableview] can't make selected text stay black

2010-03-09 Thread Keith Blount
Hi, Actually the only way I know of doing this pre-10.6 is to override NSTableView's private _highlightColorForCell: method to return nil. Even if you override -highlightSelectionInClipRect: to do nothing, the cell drawing will still use the highlight colour returned from this private method.

Re: [NSTableview] can't make selected text stay black

2010-03-09 Thread Corbin Dunn
On Mar 8, 2010, at 3:30 PM, Kevin Wojniak wrote: > What about overriding the drawTitleXXX method and just draw the text yourself? That's shouldn't be necessary; it should be possible to (easily) override the settings set by the tableview. It is just a matter of knowing what those settings are!

Re: [NSTableview] can't make selected text stay black

2010-03-09 Thread Corbin Dunn
On Mar 8, 2010, at 3:15 PM, Kent Hauser wrote: > > > On Mon, Mar 8, 2010 at 12:20 PM, Corbin Dunn wrote: > > On Mar 5, 2010, at 2:25 PM, Kent Hauser wrote: > > > Hi, > > > > I'm trying to make a NSTableView selected row not look selected. I > > subclassed NSTableView & added the following cl

Re: [NSTableview] can't make selected text stay black

2010-03-08 Thread Kevin Wojniak
What about overriding the drawTitleXXX method and just draw the text yourself? On Mar 8, 2010, at 3:15 PM, Kent Hauser wrote: > On Mon, Mar 8, 2010 at 12:20 PM, Corbin Dunn wrote: > >> >> On Mar 5, 2010, at 2:25 PM, Kent Hauser wrote: >> >>> Hi, >>> >>> I'm trying to make a NSTableView sele

Re: [NSTableview] can't make selected text stay black

2010-03-08 Thread Kent Hauser
On Mon, Mar 8, 2010 at 12:20 PM, Corbin Dunn wrote: > > On Mar 5, 2010, at 2:25 PM, Kent Hauser wrote: > > > Hi, > > > > I'm trying to make a NSTableView selected row not look selected. I > > subclassed NSTableView & added the following class & delegate methods: > > > > > How about this: [tableVi

Re: [NSTableview] can't make selected text stay black

2010-03-08 Thread Corbin Dunn
On Mar 5, 2010, at 2:25 PM, Kent Hauser wrote: > Hi, > > I'm trying to make a NSTableView selected row not look selected. I > subclassed NSTableView & added the following class & delegate methods: > > // remove selection indication > - (void)highlightSelectionInClipRect:(NSRect)clipRect > { >

Re: [NSTableview] can't make selected text stay black

2010-03-06 Thread Matt Neuburg
On Fri, 5 Mar 2010 12:25:05 -1000, Kent Hauser said: >Hi, > >I'm trying to make a NSTableView selected row not look selected. I >subclassed NSTableView & added the following class & delegate methods: > >// remove selection indication >- (void)highlightSelectionInClipRect:(NSRect)clipRect >{ >N

Re: [NSTableview] can't make selected text stay black

2010-03-05 Thread Kent Hauser
Thanks for the suggestion. I tried your suggestion (and the NSCell setHighlighted method) to no avail. Any other thoughts on how black turns white? Kent On Fri, Mar 5, 2010 at 12:52 PM, Noah Desch wrote: > > Cells highlight using white text based on the background style as far as I > can tell.

Re: [NSTableview] can't make selected text stay black

2010-03-05 Thread Noah Desch
Cells highlight using white text based on the background style as far as I can tell. Try: [cell setBackgroundStyle:NSBackgroundStyleLight]; Instead of setting the text color. -Noah On Mar 5, 2010, at 5:25 PM, Kent Hauser wrote: > Hi, > > I'm trying to make a NSTableView selected row not l

[NSTableview] can't make selected text stay black

2010-03-05 Thread Kent Hauser
Hi, I'm trying to make a NSTableView selected row not look selected. I subclassed NSTableView & added the following class & delegate methods: // remove selection indication - (void)highlightSelectionInClipRect:(NSRect)clipRect { NSLog (@"%s", __FUNCTION__); } // change selected cell text col