Re: plist help?
Re: plist help?
- Subject: Re: plist help?
- From: James Duncan Davidson <email@hidden>
- Date: Sat, 20 Sep 2003 12:31:14 -0700
On Sep 20, 2003, at 12:01, Ali Ozer wrote:
More importantly, please, do not use the cString method for extracting
8-bit file names from NSStrings. It just won't work with international
file names, and in some user environments, it might even fail to work
with plain old ASCII.
In fact, do not use cString and related methods at all, as they are
being deprecated
For filenames, if you must extract them as 8-bit, use the NSString
method fileSystemRepresentation, declared in NSPathUtilities.h.
What about using the UTF8String methods? From my read of all of the
documentation while writing "Learning Cocoa with Objective-C", I was
under the impression that UTF8 was safe as all of the BSD functions
were UTF8 aware.
But what's even better is if you can avoid extracting 8-bit strings
from NSStrings as much as possible. For instance everything you are
doing in your code you can do with the functionality in
NSPropertyListSerialization.h and NSData.h
Totally agreed.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.