Skip navigation.
 
mlRe: Programmatic "Size To Fit"
FROM : Michael Watson
DATE : Thu May 01 19:58:11 2008

Others have mentioned -[NSControl sizeToFit], but I thought it was 
worth reminding that when you can't find a method to do what you want 
in a given class, remember to check its superclasses for methods the 
class inherits for what you seek.


--
m-s


On 01 May, 2008, at 13:39, 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_removed>)
>
> 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/mikey-san
> %40bungie.org
>
> This email sent to <email_removed>

Related mailsAuthorDate
mlProgrammatic "Size To Fit" Randall Meadows May 1, 19:39
mlRe: Programmatic "Size To Fit" Martin May 1, 19:45
mlRe: Programmatic "Size To Fit" John Stiles May 1, 19:48
mlRe: Programmatic "Size To Fit" Randall Meadows May 1, 19:55
mlRe: Programmatic "Size To Fit" Michael Watson May 1, 19:58
mlRe: Programmatic "Size To Fit" Stéphane Sudre May 1, 20:00
mlRe: Programmatic "Size To Fit" Rob Napier May 1, 20:02
mlRe: Programmatic "Size To Fit" John Stiles May 1, 20:02
mlRe: Programmatic "Size To Fit" RICKY SHARP May 1, 20:53
mlRe: Programmatic "Size To Fit" Stuart Malin May 1, 21:12