Re: Have text automatically resize to fit a field
Re: Have text automatically resize to fit a field
- Subject: Re: Have text automatically resize to fit a field
- From: "John C. Welch" <email@hidden>
- Date: Fri, 06 Jan 2012 19:58:44 -0500
- Thread-topic: Have text automatically resize to fit a field
On 1/6/12 5:55 PM, "Shane Stanley" <email@hidden> wrote:
>Automatically, no. You can calculate the area needed for text, though,
>and adjust the font size or field width accordingly. Check out NSString's
>sizeWithAttributes: or boundingRectWithSize:options:attributes:. You
>could put it in a delegate in a controlTextDidChange: handler.
>
Joy. Well, we'll see what the customers say. It may never come up, (let us
hope)
--
You can use Krazy Glue in lieu of surgical stitches. For when you¹re, you
know, too poor to go to the emergency room. Or trying to avoid explaining
things to the police.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden