Re: Calling original method implementation from category
Re: Calling original method implementation from category
- Subject: Re: Calling original method implementation from category
- From: Georg Tuparev <email@hidden>
- Date: Mon, 25 Apr 2005 11:54:12 +0200
On Apr 25, 2005, at 11:28 AM, Yann Bizeul wrote:
I thought a category won't let you override a method nor add static or
instance variable ?
- one of the main purposes of categories is to override methods. My
problem is how to call the original implementation.
- add static variable - yes, it can. But this is not an ObjC feature -
just plain old C.
- add ivar - no, it cannot.
I would use poseAsClass for this kind of stuffs.
In many (most) cases posing is an overkill. It is certainly an overkill
in my case...
I would be happy someone told us what is possible with categories :-)
It is described in countless books, articles, online docs, and
postings. But someone have to read them :-)
Georg Tuparev
Tuparev Technologies
Klipper 13
1186 VR Amstelveen
The Netherlands
Mobile: +31-6-55798196
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden