Re: Multiple NSTableViews in one NSScrollView
Re: Multiple NSTableViews in one NSScrollView
- Subject: Re: Multiple NSTableViews in one NSScrollView
- From: Corbin Dunn <email@hidden>
- Date: Mon, 01 Dec 2008 10:17:50 -0800
Hi Tom,
Le Nov 26, 2008 à 1:09 AM, Thomas Engelmeier a écrit :
Hi,
I have an UI where a bunch of NSTableViews plus extra title views
are stacked in one NSScrollView.
Currently each table is loaded from a subview NIB, populated,
resized-to-fit and placed in a master documentview.
That is working fine except IB generated TableViews reside already
in a IB generated NSScrollView (unused, scrollview frame = table
+header frame) which leads to a bunch of scrolling related artifacts
(ScrollWheel etc..). How much is a NSTableView interacting with the
enclosing scroll view?
Quite a bit -- it tries to set the content size to the table's size.
Can I get rid of the scrollview by programmatically creating the
table view?
Yes, you can, but, it really depends on what you want. If you have X
tableviews stacked on top of each other, it is probably easiest to
enclose all of them in a parent scrollview, and make sure that you
can't (or don't need to) scroll the contents of the child ones.
-corbin
Ar attach the shared parent scroll view to all tableviews?
TIA,
Tom_E
_______________________________________________
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