Skip navigation.
 
mlRe: background-less NSTableViews?
FROM : Corbin Dunn
DATE : Fri Jul 14 18:06:22 2006

You may also have  to set drawsBackground=NO on the enclosing 
scrollview.

Note that I'm aware of these issues and they will be fixed.

--corbin

On Jul 13, 2006, at 5:01 PM, Andrei Tchijov wrote:

> This three methods in my NSTable subclass do it for me
> ...
> - (void)awakeFromNib {    
>    [[self enclosingScrollView] setDrawsBackground: NO];
> }
>
> - (BOOL)isOpaque {
>    return NO;
> }
>
> - (void)drawBackgroundInClipRect:(NSRect)clipRect {
>    // don't draw a background rect
> }
> ...
>
> On Jul 13, 2006, at 7:53 PM, Nathan Herring wrote:
>

>> Ok, now that I have my NSTextView nicely showing the items under 
>> it, I'm trying to add a background-free NSTableView. So far, I'm 
>> having no love. I can't set whether or not the NSTableView draws 
>> the background, so instead I set the background color to 
>> clearColor. This, like the NSTextView makes the entire control draw 
>> as black. However, unlike the NSTextView, it doesn't recover when I 
>> set it's grandparent NSScrollView to not draw its own background. 
>> What gives?
>>
>> (BTW, I've tried setting the NSClipView separately, and tried 
>> setting their backgrounds to clearColor as well, but to no avail.)
>>

Related mailsAuthorDate
mlbackground-less NSTableViews? Nathan Herring Jul 14, 01:53
mlRe: background-less NSTableViews? Andrei Tchijov Jul 14, 02:01
mlRe: background-less NSTableViews? Corbin Dunn Jul 14, 18:06