• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Have text automatically resize to fit a field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Have text automatically resize to fit a field
      • From: "John C. Welch" <email@hidden>
References: 
 >Have text automatically resize to fit a field (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Have text automatically resize to fit a field
  • Next by Date: Re: Have text automatically resize to fit a field
  • Previous by thread: Have text automatically resize to fit a field
  • Next by thread: Re: Have text automatically resize to fit a field
  • Index(es):
    • Date
    • Thread