• 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: 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


  • Follow-Ups:
    • Re: Calling original method implementation from category
      • From: Stephane Sudre <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>)

  • Prev by Date: Re: Calling original method implementation from category
  • Next by Date: Re: Beveled outline around a view(BevelBox): How to?
  • Previous by thread: Re: Calling original method implementation from category
  • Next by thread: Re: Calling original method implementation from category
  • Index(es):
    • Date
    • Thread