• 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: how to insert special characters in strings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to insert special characters in strings?


  • Subject: Re: how to insert special characters in strings?
  • From: j o a r <email@hidden>
  • Date: Wed, 2 Mar 2005 20:42:51 +0100


On 2005-03-02, at 20.33, Luc Vandal wrote:

I know this is not really cocoa related, but does anyone know how to insert special characters *such as the Command symbol) in strings (NSString, char, etc.). Can I use the escape character '\'? Can I use ASCII or do I have to use Unicode?

Something like this perhaps:

+ (NSString *) commandKeyCharacter
{
    unichar tm[1] = {0x2318};
    return [NSString stringWithCharacters: tm length: 1];
}

j o a r

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >how to insert special characters in strings? (From: Luc Vandal <email@hidden>)

  • Prev by Date: how to insert special characters in strings?
  • Next by Date: Re: Window move unknown to NSApp?
  • Previous by thread: how to insert special characters in strings?
  • Next by thread: Re: how to insert special characters in strings?
  • Index(es):
    • Date
    • Thread