• 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: Axel Andersson <email@hidden>
  • Date: Mon, 25 Apr 2005 15:05:40 +0200

On Apr 25, 2005, at 14:52, Georg Tuparev wrote:

I would like to use the same selector in my category. Otherwise there is no point running through all this pain and instead of the code you are suggesting I can just type:

Read my code again. It adds a method -SE_domain, then repoints the implementation for -domain to that of -SE_domain, and keeps the original implementation -domain around. The end result is that -domain is your overridden method, and _originalMethodImplementation is a pointer back to the original -domain.


--
Axel Andersson
email@hidden
http://www.zankasoftware.com/

_______________________________________________
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: Axel Andersson <email@hidden>)
 >Re: Calling original method implementation from category (From: Georg Tuparev <email@hidden>)

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