Hi,

I have created a test project as well and it works. The clipping of your content might be caused by the settings in the IB - I have fixed the margins for each object, what changed the behaviour of the sizeToFit-command immediately to the desired result. BUT: The size to fit command in IB behaves different. I think the reason is, that the IB works with Apple-defaults for the UI.

-- Reinhard     

Am 07.05.2010 um 12:11 schrieb Ingvar Nedrebo:

On 6 May 2010, at 17:02, Bill Hernandez wrote:

On May 6, 2010, at 10:34 AM, Ingvar Nedrebo wrote:

But when trying that, I discovered that invoking sizeToFit twice in a row does fit the box around its contents without clipping, but tightly -- i.e., without any margins. I tried various permutations of sizeToFit and setContentViewMargins but no difference: the margins are ignored. Curious.

This is exactly what I ran into...


Thanks Bill, that's another data point. I think a bug report is in order.

i.

_______________________________________________

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/macmeideln%40googlemail.com

This email sent to macmeid...@googlemail.com

_______________________________________________

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

Reply via email to