Re: copying strings with strange characters
Re: copying strings with strange characters
- Subject: Re: copying strings with strange characters
- From: "Sean McBride" <email@hidden>
- Date: Mon, 15 Aug 2005 09:46:37 -0400
- Organization: Rogue Research
On 2005-08-13 17:24, Herbert said:
>I'm using a command line utility (diskutil) to get a list of volumes
>on a drive.
There is probably a better way to do that. Calling a command line tool
has several problems, mostly that it's not a stable API like, well, an
API is. :) Check if NSWorkspace can help, or surely the Carbon File
Manager would work.
>One of the volumes has a name with an ' in it "Frank Zappa's iPod"
>
>The ' is getting mangled when I use strcpy/strcat to move the pieces
>around.
NSString/CFString will deal with these kinds of things. strcpy/strcat
are very old functions, and I would stay away from them.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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