On May 1, 2008, at 7: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?

You should also take into account when using the sizeToFit message referenced by others that the result might not always be as good as in IB.

I'm thinking about NSButton and NSTextField for instance.



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to