truncating strings
truncating strings
- Subject: truncating strings
- From: Francisco Tolmasky <email@hidden>
- Date: Thu, 22 Jan 2004 23:44:39 -0800
I know its possible to force a break off with ellipses by using an
NSMutableParagraphStyle with NSLineBreakByTruncatingTail, but what I
want to do is actually retrieve that ellipsed string, not simply
display it. The reason is because it is then to be inserted in a text
view. What I'm looking for is something like [NSString
truncatedStringWithWidth: someWidth forAttributes: attributes];
Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
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.