• 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: plist help?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plist help?


  • Subject: Re: plist help?
  • From: Ali Ozer <email@hidden>
  • Date: Sat, 20 Sep 2003 13:34:14 -0700

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.

For the file system, fileSystemRepresentation is better as it will deal with the extra trickery with regards to Unicode decomposition and such; in addition, it should protect you from any potential changes in the underlying encoding.

You're right that when dealing with BSD in things other than file names and paths, the UTF8String method is the way to go...

Ali
_______________________________________________
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.

References: 
 >RE: plist help? (From: Lance Drake <email@hidden>)
 >Re: plist help? (From: Ali Ozer <email@hidden>)
 >Re: plist help? (From: James Duncan Davidson <email@hidden>)

  • Prev by Date: Re: Why is Cocoa Better?
  • Next by Date: Re: Why is Cocoa Better?
  • Previous by thread: Re: plist help?
  • Next by thread: NSBorderlessWindowMask with key events
  • Index(es):
    • Date
    • Thread