• 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
truncating strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: NSTask Memory Problems
  • Next by Date: Re: GLUT and nib files, creates more than one app on 10.2
  • Previous by thread: Re: Multiple document models.
  • Next by thread: setUsesAlternatingRowBackgroundColors: broken?
  • Index(es):
    • Date
    • Thread