alias not resolving after a movePath
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