• 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
Re: background-less NSTableViews?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: background-less NSTableViews?


  • Subject: Re: background-less NSTableViews?
  • From: Andrei Tchijov <email@hidden>
  • Date: Thu, 13 Jul 2006 20:01:08 -0400

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.)

-nh
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: background-less NSTableViews?
      • From: Corbin Dunn <email@hidden>
References: 
 >background-less NSTableViews? (From: "Nathan Herring" <email@hidden>)

  • Prev by Date: Re: DVDPlayback
  • Next by Date: Re: Array of random, non-repeating numbers
  • Previous by thread: background-less NSTableViews?
  • Next by thread: Re: background-less NSTableViews?
  • Index(es):
    • Date
    • Thread