I am hoping someone has run into this problem and has a suggestion or two: I am 
building an Xcode-like inspector. Each collapsible "pane" is in its own xib and 
is loaded in the window controller's windowDidLoad. If I load just a single 
pane, it works beautifully out-of-the-box. If I add a second pane, auto layout 
bombs with constraint conflicts.

So I tried to follow advice about working with NSScrollViews and auto layout by 
using an "adaptor" view. This seems to resolve the conflicts but for some 
reason the adaptor view always loads with a zero height (even though it is not 
this way in the nib) and so everything gets squashed into oblivion.

There is a gotcha, perhaps, and that is that I need all of the subviews of the 
adaptor view to conform to the width of the clipview's viewable area, so I 
can't fix the width, but heights are already fixed.

Anyone know why auto layout squashes everything into a zero height? If I don't 
set the document view as not resizable in initWithFrame: it squashes the 
ScrollView too. Bizarre.

TIA,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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

Reply via email to