Re: NSTableView content height

2015-04-15 Thread Ken Thomases
On Apr 15, 2015, at 12:41 AM, Alex Kac a...@webis.net 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 (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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

NSTableView content height

2015-04-14 Thread Alex Kac
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.

-- 

*Alex Kac - **President and Founder*

*Web Information Solutions, Inc.*
___

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

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