> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to