• 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: String fragment size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String fragment size?


  • Subject: Re: String fragment size?
  • From: Markus Hitter <email@hidden>
  • Date: Sun, 10 Feb 2002 15:55:04 +0100

Am Sonntag den, 10. Februar 2002, um 12:57, schrieb Dustin Mierau:

I have a string that could be fairly large and, if this is the case, draw it on two lines instead of one. My question is, how can I calculate the optimal break point as to take up the least width possible when drawing my string?

NSTextField as well as NSTextView should do that for you. For NSTextField, you have to (un)set some flag in Interface Builder.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >String fragment size? (From: Dustin Mierau <email@hidden>)

  • Prev by Date: Re: loginWindow replacement
  • Next by Date: Re: Memory Mania Revisted
  • Previous by thread: String fragment size?
  • Next by thread: NSMatrix Examples?
  • Index(es):
    • Date
    • Thread