• 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: NSTableView content height
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView content height


  • Subject: Re: NSTableView content height
  • From: Ken Thomases <email@hidden>
  • Date: Wed, 15 Apr 2015 09:24:40 -0500

On Apr 15, 2015, at 12:41 AM, Alex Kac <email@hidden> wrote:

> I’m failing to find the proper way to do this. Given an NSTableView, I’d
> like to size its parent view to the height of all the rows/content/headers
> of that table view so that there is no scrolling.
>
> Someone suggested:
>
> [_scrollView.documentView frame].size.height
>
>
> But that does not work for me. I’d love to get a better suggestion.

Well, what did you do with the above value that didn't work?  Did you feed that as input into +[NSScrollView frameSizeForContentSize:horizontalScrollerClass:verticalScrollerClass:borderType:controlSize:scrollerStyle:] to compute the frame size that the scroll view would have to be to accommodate it?

Regards,
Ken


_______________________________________________

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: 
 >NSTableView content height (From: Alex Kac <email@hidden>)

  • Prev by Date: User interface unresponsive in window
  • Next by Date: Scaling images for Insertion into UITextView .attributedText
  • Previous by thread: NSTableView content height
  • Next by thread: Master - Detail: How to get back?
  • Index(es):
    • Date
    • Thread