• 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: Calling original method implementation from category
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Calling original method implementation from category (From: Georg Tuparev <email@hidden>)
 >Re: Calling original method implementation from category (From: Yann Bizeul <email@hidden>)
 >Re: Calling original method implementation from category (From: Georg Tuparev <email@hidden>)
 >Re: Calling original method implementation from category (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Calling original method implementation from category
  • Next by Date: Re: Calling original method implementation from category
  • Previous by thread: Re: Calling original method implementation from category
  • Next by thread: Re: Calling original method implementation from category
  • Index(es):
    • Date
    • Thread