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

Re: NSString and char *


  • Subject: Re: NSString and char *
  • From: Andrei Tchijov <email@hidden>
  • Date: Sat, 11 Feb 2006 18:53:58 -0500


+ stringWithCString:encoding:
Returns a string containing the characters in cString, which must end with a NULL character and which may not be NULL.


+ stringWithUTF8String:
Returns a string created by copying the characters from bytes, which may not be NULL.






– initWithCString:encoding:
Initializes the receiver, a newly allocated NSString, by converting the characters in cString from the specified encoding into the Unicode character encoding.


– initWithUTF8String:
Initializes the receiver, a newly allocated NSString, by copying the characters from bytes.






On Feb 11, 2006, at 5:47 PM, Lars Elden wrote:

I am mixing ObjC and C compiled files. How to initialize a NSString from a
char * C string ?


thanks!

Lars


______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com _______________________________________________ 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

_______________________________________________ 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: 
 >NSString and char * (From: "Lars Elden" <email@hidden>)

  • Prev by Date: adding nodes that can be edited to NSOutlineView, ex.?
  • Next by Date: Re: objc_msgSend problems on x86
  • Previous by thread: NSString and char *
  • Next by thread: RE: NSString and char *
  • Index(es):
    • Date
    • Thread