Re: NSView/NSTableView question
Re: NSView/NSTableView question
- Subject: Re: NSView/NSTableView question
- From: Benjamin Stiglitz <email@hidden>
- Date: Thu, 9 Dec 2010 17:19:22 -0500
> Great thanks for the replies. I was also thinking about this but I might try to add a little bit of graphics too using NSBezierPath would it still work? But at least these 2 ideas can keep me going until I get this working right. Thanks!
You can also do this in a subclass of NSTableView:
- (void)drawRect:(NSRect)rect
{
[super drawRect:rect];
if([self numberOfRows] > 0) {
return;
}
// draw empty message here
}
It’s worth noting that overriding -drawRect: disables certain performance optimizations implemented by the table view.
-Ben_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden