On Jul 8, 2012, at 20:56 , Charles Srstka wrote:

> On Jul 8, 2012, at 9:48 PM, Rick Mann wrote:
> 
>>> With no height constraint, the system doesn’t know how it should look at 
>>> startup, and therefore that picture with the bottom pane being half the 
>>> window’s height is just as legit as the bottom text view being one line 
>>> high.
>> 
>> On the contrary, it has a perfectly reasonable size at startup. Assuming, of 
>> course, that IB didn't allow me to add conflicting constraints.
> 
> Well, not really; what if you’re running a German localization, and the title 
> of the “Send” button gets swapped out to “Senden”? Now the button won’t be 
> wide enough for its title.

Again, I'd argue it works just fine. Start with the view as specified in IB. 
Then change the title, then try to adjust the size. In this example, buttons 
have an intrinsic size that the system uses, based on the content.

But my situation is the text view and split view pane, which (AFAIK) don't have 
intrinsic sizes. So, a good starting point is the size specified in IB.

NIB coming under separate cover.

> 
> Cocoa Auto Layout does exactly what it says on the tin; it Automatically does 
> the Layout. This means that the view frames don’t matter. Those get 
> overwritten when the system automatically calculates a new layout for 
> everything based on the constraints.
> 
> Would you mind maybe posting the .xib file that’s giving you trouble? I could 
> monkey around with it a bit and see if I could figure out anything that way.
> 
> Charles
> 


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to