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

alias not resolving after a movePath


  • Subject: alias not resolving after a movePath
  • From: Gonzalo Castro <email@hidden>
  • Date: Fri, 11 Nov 2005 11:49:07 -0500

I have an alias with its target set to origPath.

When I call
[[NSFileManager defaultManager] movePath:origPath toPath:newPath handler:nil]
I would expect the next time I try to resolve the alias that its target would be updated to newPath.


However, I get a -43 returned. I am using
FSResolveAliasWithMountFlags(NULL, myAlias, &myRef, &wasChanged, kResolveAliasFileNoUI);


The movePath returns success and in fact if I look in the Finder the move is made.


If I mimic the movePath command via the Finder, the alias resolves correctly.


I've tried making calls to [[NSWorkspace sharedWorkspace] noteFileSystemChanged:origPath]
after the movePath. No improvement.



Why doesn't my alias resolve the to newPath?


Gonzalo


_______________________________________________ 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
  • Follow-Ups:
    • Re: alias not resolving after a movePath
      • From: Matt Gough <email@hidden>
  • Prev by Date: Re: How to resolve conflict between 2 NSPanels?
  • Next by Date: Re: How to resolve conflict between 2 NSPanels?
  • Previous by thread: Re: How to resolve conflict between 2 NSPanels?
  • Next by thread: Re: alias not resolving after a movePath
  • Index(es):
    • Date
    • Thread