• 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
NSString and wchar_t
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString and wchar_t


  • Subject: NSString and wchar_t
  • From: James Gregurich <email@hidden>
  • Date: Tue, 18 Dec 2001 09:08:38 -0600

What is the proper way to convert between wchar_t* and NSString/NSMutableString in Objective C++?

wchar_t is a unicode (double byte) character


To illustrate what I am after:


wchar_t *x = L"This is a string";



I want to be able to import x into NSString and NSMutableString and also export from NSString and NSMutableString to x.


thanks,
James Gregurich


  • Follow-Ups:
    • Re: NSString and wchar_t
      • From: Sandy Martel <email@hidden>
  • Prev by Date: Re: Hash value for NSArray
  • Next by Date: Re: Ways Apple COULD optimize -setNeedsDisplay
  • Previous by thread: [OT?] Programmer Wanted
  • Next by thread: Re: NSString and wchar_t
  • Index(es):
    • Date
    • Thread