Re: String fragment size?
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.