• 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: 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.


  • Follow-Ups:
    • Re: Appending an ellipsis to a NSString
      • From: "Daniel Sarosi" <email@hidden>
References: 
 >Appending an ellipsis to a NSString (From: Glen Low <email@hidden>)

  • Prev by Date: Re: Adding table columns with image cells - the problem
  • Next by Date: Is Concatenation that complex?
  • Previous by thread: Re: Appending an ellipsis to a NSString
  • Next by thread: Re: Appending an ellipsis to a NSString
  • Index(es):
    • Date
    • Thread