On Wed, Feb 11, 2009 at 9:20 AM, Oleg Krupnov <oleg.krup...@gmail.com> wrote:
> Is there a way to programmatically resize a button or text field to
> fit its contents exactly? I can do it in the Interface Builder, but I
> need to do it at runtime. Thanks!

  Have you tried searching the documentation? The -[NSControl
sizeToFit] method doesn't strike me as too difficult to find in a
keyword search ... Since NSButton is a subclass of NSControl, that
looks like a good place to start, no?

--
I.S.
_______________________________________________

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 arch...@mail-archive.com

Reply via email to