Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString and char *



On 2/12/06, Jordan Krushen <email@hidden> wrote:
> Giving you the benefit of the doubt that you're not using Tiger
> (although this would still be in the NSString documentation), if you
> want an autoreleased string, just use +stringWithCString:

stringWithCString has been "not recommended" for some time, since it
can assume different encodings on different systems. You should
specify what encoding the C string is in.

 -- Finlay
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >NSString and char * (From: "Lars Elden" <email@hidden>)
 >RE: NSString and char * (From: "Lars Elden" <email@hidden>)
 >Re: NSString and char * (From: Jordan Krushen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.