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: Shane Stanley <email@hidden>
- Date: Sat, 07 Jan 2012 09:55:26 +1100
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.
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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