• 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: setting table view's cell size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting table view's cell size?


  • Subject: Re: setting table view's cell size?
  • From: Todd Heberlein <email@hidden>
  • Date: Wed, 20 Apr 2011 18:31:27 -0700

> I am able to draw an image in an NSTableView's cell using the NSImageCell, but I want a larger cell. What is the best way to do this?

OK, I found a solution. I have a delegate for the table that implements

	- (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row

The documentation says this is "if your table supports varying row heights". Is there a better way to do this if all your rows will be the same height?

Todd

_______________________________________________

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

  • Follow-Ups:
    • Re: setting table view's cell size?
      • From: Michael Babin <email@hidden>
    • Re: setting table view's cell size?
      • From: Graham Cox <email@hidden>
References: 
 >setting table view's cell size? (From: Todd Heberlein <email@hidden>)

  • Prev by Date: setting table view's cell size?
  • Next by Date: Re: setting table view's cell size?
  • Previous by thread: setting table view's cell size?
  • Next by thread: Re: setting table view's cell size?
  • Index(es):
    • Date
    • Thread