• 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: NSTextField sizing to fit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField sizing to fit


  • Subject: Re: NSTextField sizing to fit
  • From: matt neuburg <email@hidden>
  • Date: Tue, 17 Dec 2002 12:19:02 -0800

On Tue, 17 Dec 2002 09:42:32 -0600, Nicholas Riley <email@hidden> said:

>I'm trying to make a NSTextField fit to the height of its containing
>text given a particular width. I'm getting a height back from Cocoa
>which is almost what i want, but a few pixels short

I'm guessing there's a bug in Cocoa. In my app I print several identically laid out pages full of strings drawn into fixed rect; it often happens that even though both the string and the rect are identical on two different pages, they wrap differently, or the very end of the last letter is cut off on one page but not another. m.

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.

  • Prev by Date: Re: Tooltips - what a pathetic joke... :)
  • Next by Date: Re: Help me please to find a job in Cocoa
  • Previous by thread: Re: NSTextField sizing to fit
  • Next by thread: Methods with Variable Numbers of Arguments--Second Attempt
  • Index(es):
    • Date
    • Thread