Hi

I'd like to programmatically mov to trash a file from an afp mounted volume. I have been using NSWorkspace with NSWorkspaceRecycleOperation but it fails (tag returned is -1).
Is there a way to get a more exact description of the error?

I tried to move to FSPathMoveObjectToTrashSync and it returns an error -120 (directory not found). I look on the mounted volume and .Trash seems not to be here. By itself not a real problem but is there a way to trigger NSWorkspace or the FileManager to display a dialog like in Finder saying "the file will be deleted immediately and other thing"

Thanks

laurent

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to