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
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
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
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
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
>
> 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
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
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
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.
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!
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
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
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
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
> {
>
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
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.
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
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
18 matches
Mail list logo