Re: problems with NSWorkspaceRecycleOperation
Re: problems with NSWorkspaceRecycleOperation
- Subject: Re: problems with NSWorkspaceRecycleOperation
- From: Matt Neuburg <email@hidden>
- Date: Mon, 20 May 2002 11:27:20 -0700
On Tue, 26 Feb 2002 23:36:01 -0800, John Blackburn <email@hidden> said:
>
NSWorkspaceRecycleOperation is broken. This was discussed recently (Feb
>
22). Kurt Revis supplied a workaround with working code using
>
AppleEvents to tell the Finder to move the files to the trash. This
>
solves the trash icon problem, addresses auto-renaming, and moves the
>
files reliably.
>
>
Ondra Cada noted that implementing this as a category on NSWorkspace
>
would allow the calling code to remain "correct" and blissfully unaware
>
of the workaround.
Sorry, I'm not following that last part. How could such a category be
implemented? If a category on NSWorkspace were to "override"
performFileOperation:source:destination:files:tag: in order to rewrite only
what happens when the operation is NSWorkspaceRecycleOperation, it would
become impossible to gain access to any of NSWorkspace's own implementation
of this method - wouldn't it? And that would be a disaster, since you then
could not perform any *other* operation.
(Please do not reopen the argument on whether sending an apple event to the
Finder is a good idea. My question is about how categories work.)
Thx - m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes gar anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.