Re: Subclassing Catch-22
Re: Subclassing Catch-22
- Subject: Re: Subclassing Catch-22
- From: Ondra Cada <email@hidden>
- Date: Wed, 27 Apr 2005 00:36:46 +0200
Todd,
On 27.4.2005, at 0:30, Todd Ransom wrote:
If I augment the return from the superclass, how do I know whether to
call
First, you don't call an implementation: you send a message. That's an
important difference. You'd be calling implementations if you cached
IMPs.
my implementation or super's?
Anyway: you use "super" *only* when overriding a method, to use the
original one. All the other cases, you use "self".
(Well any rule has its exceptions, but until you are more cosy with
object design, just stick with it.)
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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