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

Re: changing a files name?


  • Subject: Re: changing a files name?
  • From: Sherm Pendley <email@hidden>
  • Date: Mon, 23 Feb 2004 22:20:25 -0500

On Feb 23, 2004, at 9:53 PM, email@hidden wrote:

I've been looking and haven't been able to find the exact way of doing this? Do i use NSFileManager or something else i would think fm but i haven't found anything that looks like it?

It looks like NSFileManager's -movePath:toPath:handler: method is what you're looking for. The description of that method doesn't really come right out and say it, but the 'mv' command is used in UNIX for both moving and renaming files, and it looks like NSFileManager adopted that convention.

sherm--
_______________________________________________
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: 
 >changing a files name? (From: email@hidden)

  • Prev by Date: Re: Unwanted clip of rotated text
  • Next by Date: key value observing crash on removal
  • Previous by thread: changing a files name?
  • Next by thread: problems in measuring text rendering size
  • Index(es):
    • Date
    • Thread