• 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: What's the difference between a C++ and ObjC String?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the difference between a C++ and ObjC String?


  • Subject: Re: What's the difference between a C++ and ObjC String?
  • From: Steve Checkoway <email@hidden>
  • Date: Sat, 2 Jul 2005 02:25:56 -0700

On Jul 1, 2005, at 7:59 PM, Frederick C. Lee wrote:

So I guess my question is, can I use the same NSString method to convert a C-string and a C++ string, namely:

+ (id)stringWithUTF8String:(const char *)bytes?

string foo("foo"); NSString *bar = [NSString stringWithUTF8String:foo.c_str()];

- Steve

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: 
 >What's the difference between a C++ and ObjC String? (From: "Frederick C. Lee" <email@hidden>)
 >Re: What's the difference between a C++ and ObjC String? (From: Ondra Cada <email@hidden>)
 >Re: What's the difference between a C++ and ObjC String? (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: Re: DotMacKit 2.0?
  • Next by Date: Re: Enable Buttons
  • Previous by thread: Re: What's the difference between a C++ and ObjC String?
  • Next by thread: Re: What's the difference between a C++ and ObjC String?
  • Index(es):
    • Date
    • Thread