• 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
Re: Appending an ellipsis to a NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Appending an ellipsis to a NSString


  • Subject: Re: Appending an ellipsis to a NSString
  • From: "Daniel Sarosi" <email@hidden>
  • Date: Fri, 23 Apr 2004 13:44:08 +0800

Try this example:
http://www.cocoadev.com/index.pl?TruncatingStringsInTableView

I tried the top example and modified it for my purposes. It works fine.

----- Original Message -----
From: "Clark Cox" <email@hidden>
To: "Glen Low" <email@hidden>
Cc: "Cocoa-Dev Apple" <email@hidden>
Sent: Friday, April 23, 2004 9:48 AM
Subject: Re: Appending an ellipsis to a NSString


> On Apr 22, 2004, at 21:16, Glen Low wrote:
>
> > Hi all,
> >
> > What's the easiest way to append an ellipsis to the end of a NSString?
> > (It should work with any encoding...)
> >
> > I thought:
> >
> > [string stringByAppendingString: @"\u2026"]
> >
> > where 0x2026 is the Unicode for ellipsis, but the compiler doesn't
> > recognize the \u escape sequence.
>
> The @"" string syntax only supports ASCII, try this:
>
> [string stringByAppendingFormat: @"%C", 0x2026]
>
> --
> Clark S. Cox III
> email@hidden
> http://homepage.mac.com/clarkcox3/
> http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html
>
> [demime 0.98b removed an attachment of type application/pkcs7-signature
which had a name of smime.p7s]
> _______________________________________________
> 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.
_______________________________________________
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.


References: 
 >Appending an ellipsis to a NSString (From: Glen Low <email@hidden>)
 >Re: Appending an ellipsis to a NSString (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: Pop email checking information?
  • Next by Date: Re: Is Concatenation that complex?
  • Previous by thread: Re: Appending an ellipsis to a NSString
  • Next by thread: Colorizing an image
  • Index(es):
    • Date
    • Thread