On Nov 10, 2010, at 14:09, Patrick Mau wrote: > The scrollview resizes along with my custom view, which is fine. > This triggers a resize of the NSClipView, which is the contentView of the > scrollview. > > The documentView's frame is obviously not affected. > > So someone must tell the tableView that it should resize its colums in > response > to a scrollview frame change.
What am I missing, because the answer seems too easy? The table view won't resize automatically unless *its* 'autoresizingMask' tells it to do so, and you haven't set that. (You did set it for the scroll view, but that's a different view -- it's the table view's parent view's parent view.) Note that a tableView doesn't resize its columns "in response to a scrollview frame change". It resizes its columns in response to a table view frame change, and *that* only happens automatically when the autoresizingMask is set appropriately. > It's half a page of code and I'd just like to know whats happening > behind the scenes here. It's a pointless comment for me to make, I suppose, but I truly don't understand how such manual code tells you "what's happening behind the scenes". If IB (in IB-constructed NIBs) is merely setting these properties for you, nothing is happening behind the scenes -- it's all out in front of the scenery -- and if IB is doing something behind the scenes, writing code using the public API isn't going to reveal what it is. _______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com