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

Re: Renaming files?


  • Subject: Re: Renaming files?
  • From: Andrew Farmer <email@hidden>
  • Date: Mon, 20 Dec 2004 15:04:10 -0800

On 20 Dec 2004, at 14:11, Jeremy Dronfield wrote:
On 20 Dec 2004, at 5:01 pm, Christoffer Lerno wrote:
I thought I had renaming files nailed down by using NSFileManager's movePath:toPath:handler: but it has problems with spaces & non ascii characters in filenames - the documentation unfortunately doesn't reveal how this is circumvented.

In my experience, the only character -movePath:toPath:handler: can't cope with is a "/". It's possible, using the Finder, to put a slash in a filename, and NSFileManager interprets it as a path separator. (There may even be a way round this, but I haven't looked. I know Carbon can cope with it.)

Yup - there's some translation going on between Carbon and the underlying file system.


Since Carbon uses ':' as a path separator and the UNIX semantics use '/' for the same, the bridge (wherever it is) swaps the two at the transition.

Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
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: 
 >Renaming files? (From: Christoffer Lerno <email@hidden>)
 >Re: Renaming files? (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: NSBeginAlertSheet (II)
  • Next by Date: Re: Toolbar bug?
  • Previous by thread: Re: Renaming files?
  • Next by thread: Re: Renaming files?
  • Index(es):
    • Date
    • Thread