From the docs:

"NSWorkspaceRecycleOperation
Move file to trash. The file is moved to the trash folder on the volume containing the file[...]"

So it's definitely a bug in NSWorkspace if it doesn't work this way.

On Aug 7, 2008, at 3:23 PM, Ken Ferry wrote:

On Thu, Aug 7, 2008 at 1:19 PM, Randall Meadows <[EMAIL PROTECTED] pc.com> wrote:
On Aug 7, 2008, at 2:12 PM, Nate Weaver wrote:

I'd say just try the default options and see what happens. You might also look at -[NSWorkspace performFileOperation:source:destination:files:tag:]
with NSWorkspaceRecycleOperation as the first argument.

Yes, that's actually what I started with, but that doesn't (automatically) take into account the volume that the document resides on and its related Trash directory. Which is what I'm hoping FSMoveObjectToTrash gives me.

If something about NSWorkspace's behavior doesn't match the Finder,
please file a bug.

Ken Ferry
Cocoa Frameworks


_______________________________________________

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