Re: sizeToFit without actually changing the size?
Re: sizeToFit without actually changing the size?
- Subject: Re: sizeToFit without actually changing the size?
- From: Ricky Sharp <email@hidden>
- Date: Tue, 20 Nov 2007 17:08:20 -0600
On Nov 20, 2007, at 4:56 PM, John Stiles wrote:
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.
Try using:
NSSize theSize = [[theCheckbox cell] cellSize];
When writing all my custom controls, I implement cellSize in their
cells to return a proper value. IB's "size to fit" operation then
uses that info. Sounds like you want to do the same thing, but
programatically? (I'm assuming this thread is related to the "building
checkboxes programatically" thread).
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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