• 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: Replacing a method via categorys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacing a method via categorys


  • Subject: Re: Replacing a method via categorys
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 27 Jun 2005 23:58:59 +0200

Theodore,

On 27.6.2005, at 23:48, Theodore H. Smith wrote:

If I want to replace a method in a category, how can I get that replacement method to call the original method?

In short: you can't. That's the very principle of categories.

(Well in fact there are somewhat dirty runtime-based tricks to do that, but do avoid them unless you have no other option :))
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >Replacing a method via categorys (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Replacing a method via categorys
  • Next by Date: Re: Multiple singletons
  • Previous by thread: Replacing a method via categorys
  • Next by thread: Re: Replacing a method via categorys
  • Index(es):
    • Date
    • Thread