• 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: Ondra Cada <email@hidden>
  • Date: Mon, 20 May 2002 21:21:16 +0200

On Monday, May 20, 2002, at 08:27 , Matt Neuburg wrote:

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.

One way (which I meant) would be to reimplement them all -- and it would be quite probably needed anyway, in a real situation.

Otherwise, you can poseAsClass: to gain access to the original implementation as well.

Incidentally, if need be (which I seriously doubt), ObjC is dynamic enough to *get* access to the method overridden by a category through the runtime support.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.
References: 
 >Re: problems with NSWorkspaceRecycleOperation (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: [ANN] Developer for rent
  • Next by Date: Re: Launch Email or Browser
  • Previous by thread: Re: problems with NSWorkspaceRecycleOperation
  • Next by thread: Newbie Questions
  • Index(es):
    • Date
    • Thread