Skip navigation.
 
mlRe: NSTextField sizing to fit
FROM : matt neuburg
DATE : Tue Dec 17 21:19:02 2002

On Tue, 17 Dec 2002 09:42:32 -0600, Nicholas Riley <<email_removed>> 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_removed>, 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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlNSTextField sizing to fit Nicholas Riley Dec 17, 16:42
mlRe: NSTextField sizing to fit Mike Ferris Dec 17, 17:53
mlRe: NSTextField sizing to fit Nicholas Riley Dec 17, 18:45
mlRe: NSTextField sizing to fit matt neuburg Dec 17, 21:19