• 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: 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

References: 
 >Line count in an NSTextField (From: Gregory Weston <email@hidden>)

  • Prev by Date: Re: Replacing the view in NSTabView
  • Next by Date: QTKit for creating movies
  • Previous by thread: Line count in an NSTextField
  • Next by thread: Re: Line count in an NSTextField
  • Index(es):
    • Date
    • Thread