• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSBox sizeToFit problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBox sizeToFit problem


  • Subject: Re: NSBox sizeToFit problem
  • From: Reinhard Segeler <email@hidden>
  • Date: Sun, 9 May 2010 11:22:00 +0200

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 (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

_______________________________________________

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


References: 
 >NSBox sizeToFit problem (From: Ingvar Nedrebo <email@hidden>)
 >Re: NSBox sizeToFit problem (From: Jerry Krinock <email@hidden>)
 >Re: NSBox sizeToFit problem (From: Ingvar Nedrebo <email@hidden>)
 >Re: NSBox sizeToFit problem (From: Bill Hernandez <email@hidden>)
 >Re: NSBox sizeToFit problem (From: Ingvar Nedrebo <email@hidden>)

  • Prev by Date: Re: Ticker Style Scrolling Text
  • Next by Date: Why I can't change the view's layer anchorPoint?
  • Previous by thread: Re: NSBox sizeToFit problem
  • Next by thread: Re: NSBox sizeToFit problem
  • Index(es):
    • Date
    • Thread