Re: problems with NSWorkspaceRecycleOperation
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.