Re: Appending an ellipsis to a NSString
Re: Appending an ellipsis to a NSString
- Subject: Re: Appending an ellipsis to a NSString
- From: Clark Cox <email@hidden>
- Date: Thu, 22 Apr 2004 21:48:23 -0400
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.