• 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: Space Required By Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Space Required By Text


  • Subject: Re: Space Required By Text
  • From: Enrique Zamudio <email@hidden>
  • Date: Wed, 30 May 2001 18:00:56 -0500
  • Organization: Nasoft

You can use a category of NSAttributedString that's in the AppKit. It
has some methods to calculate the size of a string with a given set of
attributes, such as the font. That way you can know what size to make
your textfield very easily.

eZL


  • Follow-Ups:
    • Newbie question...
      • From: Mark Collins <email@hidden>
  • Prev by Date: Cocoa for "platform independence"???
  • Next by Date: Icons in NSOutlineView
  • Previous by thread: Re: Space Required By Text
  • Next by thread: Newbie question...
  • Index(es):
    • Date
    • Thread