Re: Line count in an NSTextField
Re: Line count in an NSTextField
- Subject: Re: Line count in an NSTextField
- From: Jerry Krinock <email@hidden>
- Date: Sun, 25 Sep 2005 19:44:10 -0700
- Thread-topic: Line count in an NSTextField
on 05/09/25 18:48, Gregory Weston at email@hidden 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
_______________________________________________
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