• 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: copying strings with strange characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >copying strings with strange characters (From: Herbert <email@hidden>)

  • Prev by Date: Re: IB strangeness - way to manually edit connections outside of IB?
  • Next by Date: Re: path name from Apple Event
  • Previous by thread: copying strings with strange characters
  • Next by thread: Debugging a simple Cocoa Program
  • Index(es):
    • Date
    • Thread