• 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
Re: problems with NSWorkspaceRecycleOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: problems with NSWorkspaceRecycleOperation
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: File IO preventing sleep
  • Next by Date: Re: File IO preventing sleep
  • Previous by thread: NSSlider's mouseDown implementation
  • Next by thread: Re: problems with NSWorkspaceRecycleOperation
  • Index(es):
    • Date
    • Thread