Re: Transparent NSTableView. Is it possible?
Re: Transparent NSTableView. Is it possible?
- Subject: Re: Transparent NSTableView. Is it possible?
- From: Todd Ransom <email@hidden>
- Date: Thu, 18 Aug 2005 10:51:41 -0600
Looking at this I realize it's not all that clear. The code below is
contained in a subclass of NSTableView.
HTH,
Todd Ransom
Return Self Software
http://returnself.com
On Aug 18, 2005, at 9:32 AM, Todd Ransom wrote:
Andrei,
I just looked at this and there is not much to it so I will just
post it here rather than creating an example project, etc.
You just need to override a couple of methods and set your scroll
view to be transparent when you awakeFromNib.
==========================
- (void)awakeFromNib {
[[self enclosingScrollView] setDrawsBackground: NO];
}
- (BOOL)isOpaque {
return NO;
}
- (void)drawBackgroundInClipRect:(NSRect)clipRect {
// don't draw a background rect
}
_______________________________________________
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