• 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: Line count in an NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Simply read a value when using core data ?
  • Next by Date: Finding applications that link to framework
  • Previous by thread: Re: Line count in an NSTextField
  • Next by thread: QTKit for creating movies
  • Index(es):
    • Date
    • Thread