Re: Line count in an NSTextField
Re: Line count in an NSTextField
- Subject: Re: Line count in an NSTextField
- From: Gregory Weston <email@hidden>
- Date: Mon, 26 Sep 2005 06:46:05 -0400
Jerry Krinock wrote:
What I'm really trying to do is make a window be no larger than it
necessary to be to contain a small but variable amount of text,
subject to an arbitrary maximum width.
Any advice or pointers to sample code?
Consider this:
http://www.cocoabuilder.com/archive/message/2002/2/19/71224
which you can find explained in the docs on your hard drive:
ADC Home > Reference Library > Documentation > Cocoa > Text & Fonts
> Text
Layout Programming Guide > Calculating Text Height
Thank you. I had missed both of those. I _did_ find the CircleView
sample as noted in the thread you linked but, again as noted, the way
to generalize it kind of escape me.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden