• 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: alias not resolving after a movePath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alias not resolving after a movePath


  • Subject: Re: alias not resolving after a movePath
  • From: John Stiles <email@hidden>
  • Date: Fri, 11 Nov 2005 10:40:03 -0800

On Nov 11, 2005, at 10:18 AM, Pontus Ilbring wrote:

On 11/11/05, Matt Gough <email@hidden> wrote:

My guess would be that movePath isn't preserving the nodeID of the file in your case. If that is true then it would imply that it is really doing a copy followed by a delete, but I find that hard to believe.

That is the documented behaviour of movePath.

The Finder, being a Carbon application, does not use movePath -- it
probably uses FSMoveObject.

Wow, yuck. That's going to be a lot slower than just moving the file. And as you note it breaks aliases!!
I would ditch the NSFileManager in this case and go with BSD rename:


http://developer.apple.com/documentation/Darwin/Reference/ManPages/ man2/rename.2.html

_______________________________________________
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: 
 >alias not resolving after a movePath (From: Gonzalo Castro <email@hidden>)
 >Re: alias not resolving after a movePath (From: Matt Gough <email@hidden>)
 >Re: alias not resolving after a movePath (From: Pontus Ilbring <email@hidden>)

  • Prev by Date: NSPersistentDocument SQL Save As
  • Next by Date: Re: NSPersistentDocument SQL Save As
  • Previous by thread: Re: alias not resolving after a movePath
  • Next by thread: Re: alias not resolving after a movePath
  • Index(es):
    • Date
    • Thread