• 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: sizeToFit without actually changing the size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sizeToFit without actually changing the size?


  • Subject: Re: sizeToFit without actually changing the size?
  • From: John Stiles <email@hidden>
  • Date: Tue, 20 Nov 2007 14:56:46 -0800

It's a checkbox and I want to know how wide it will need to be if I change its title—not exactly sure how I would do that.


Michael Watson wrote:
Could you calculate the extents of the things the view contains, using their origins and sizes, perhaps?


-- m-s

On 20 Nov, 2007, at 16:40, John Stiles wrote:

Is there any way to obtain the size that -sizeToFit will set my view to, without actually having it set the size?

(I can get the view's frame and then change the frame back to its old frame after -sizeToFit is done, but that seems like I'm going the long way around…)

_______________________________________________

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


  • Follow-Ups:
    • Re: sizeToFit without actually changing the size?
      • From: Ricky Sharp <email@hidden>
References: 
 >sizeToFit without actually changing the size? (From: John Stiles <email@hidden>)
 >Re: sizeToFit without actually changing the size? (From: Michael Watson <email@hidden>)

  • Prev by Date: Re: sizeToFit without actually changing the size?
  • Next by Date: Re: Position of NSStatusItem
  • Previous by thread: Re: sizeToFit without actually changing the size?
  • Next by thread: Re: sizeToFit without actually changing the size?
  • Index(es):
    • Date
    • Thread