Re: NSTableView content height
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