Re: Programmatic "Size To Fit"
Re: Programmatic "Size To Fit"
- Subject: Re: Programmatic "Size To Fit"
- From: Rob Napier <email@hidden>
- Date: Thu, 1 May 2008 14:02:30 -0400
The method is called -sizeToFit.
-Rob
On May 1, 2008, at 1:39 PM, Randall Meadows wrote:
I am creating a bunch of controls (at least NSTextfield,
NSPopupButton, NSSlider, and perhaps others) programmatically (that
will eventually be shown in an NSTableView), and would like to apply
the "Size To Fit" feature that IB provides. However, there doesn't
seem to be any API that does that.
Does IB simply brute-force the resizing for every type of view, or
am I missing the appropriate call in the NSView API?
Thanks!
randy
_______________________________________________
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