• 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: NSView/NSTableView question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSView/NSTableView question (From: Peter Hudson <email@hidden>)
 >Re: NSView/NSTableView question (From: "Rick C." <email@hidden>)

  • Prev by Date: [MEET] CocoaHeads-NYC, tonight
  • Next by Date: Re: label color
  • Previous by thread: Re: NSView/NSTableView question
  • Next by thread: label color
  • Index(es):
    • Date
    • Thread