Re: Calling original functions from overriding Category functions
Re: Calling original functions from overriding Category functions
- Subject: Re: Calling original functions from overriding Category functions
- From: Ondra Cada <email@hidden>
- Date: Thu, 18 Mar 2004 20:29:20 +0100
Eric,
On Thursday, Mar 18, 2004, at 20:02 Europe/Prague, Eric Forget wrote:
Unless you recorded the original implementation before the category
was
loaded of course, in which case you can stay at the OO level using the
methodForSelector: message.
You do not create a "Category". Instead, you create a normal C
function with
the right signature that will be installed at runtime...
That can be done of course, but recording the implementation and then
loading the category (from a bundle) is both easier and cleaner than
(effectively) duplicating the category loader functionality in your
code. Been there, done that.
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.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.