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



Sure I did.
Seems that NSLineBreakByTruncatingMiddle in the NSParagraphStyle overrides NSStringDrawingTruncatesLastVisibleLine.
Anyway, I think I can live with that :)


On Nov 1, 2008, at 3:32 AM, Adam R. Maxwell wrote:


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

Thanks Adam, works grate!
There is only one little flaw that it always truncates the tail and I don't see a way to change this.

Did you try setting NSLineBreakByTruncatingMiddle on your NSParagraphStyle? I don't recall trying that with NSStringDrawingTruncatesLastVisibleLine myself, but it should work.


--
Adam


_______________________________________________

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>)



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.