Re: Calling original method implementation from category
Re: Calling original method implementation from category
- Subject: Re: Calling original method implementation from category
- From: Johnny Deadman <email@hidden>
- Date: Mon, 25 Apr 2005 07:34:10 -0400
On 25-Apr-05, at 7:09 AM, Stephane Sudre wrote:
It is described in countless books, articles, online docs, and
postings. But someone have to read them :-)
Do you have any reference available explaining that you can
override a method with a category?
From TFM: http://developer.apple.com/documentation/Cocoa/Conceptual/
ObjectiveC/LanguageOverview/chapter_3_section_7.html
The methods added in a category can be used to extend the
functionality of the class or override methods the class inherits.
A category can also override methods declared in the class
interface. However, it cannot reliably override methods declared in
another category of the same class. A category is not a substitute
for a subclass. It’s best if categories don’t attempt to redefine
methods that are explicitly declared in the class’s@interface
section. Also note that a class can’t define the same method more
than once.
_______________________________________________
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