Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder like wrapping + truncation




On Oct 31, 2008, at 7:53 PM, Mudi Dandan wrote:

I just found this in the release notes:

"The Cocoa Text System now allows the last visible line to have an ellipsis character appended if the entire content cannot fit into the specified bounding box. The behavior can be controlled with - truncatesLastVisibleLine for text cells. The -lineBreakMode must be either NSLineBreakByWordWrapping or NSLineBreakByCharWrapping for this option to take effect.. Also, the NSStringDrawingTruncatesLastVisibleLine flag can be specified to NSStringDrawing APIs that take NSStringDrawingOptions. The NSStringDrawingUsesLineFragmentOrigin flag must also be specified for the truncation flag to take effect."

That makes sense, I guess, but it wasn't mentioned in the NSStringDrawing header that I looked at, so I appended it to my bug report on the missing documentation. Glad you found that even after I pointed you in the wrong direction!


--
Adam

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Finder like wrapping + truncation (From: Mudi Dandan <email@hidden>)
 >Re: Finder like wrapping + truncation (From: "Adam R. Maxwell" <email@hidden>)
 >Re: Finder like wrapping + truncation (From: Mudi Dandan <email@hidden>)
 >Re: Finder like wrapping + truncation (From: "Adam R. Maxwell" <email@hidden>)
 >Re: Finder like wrapping + truncation (From: Mudi Dandan <email@hidden>)
 >Re: Finder like wrapping + truncation (From: Mudi Dandan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.