Re: self
Re: self
- Subject: Re: self
- From: Mark Lively <email@hidden>
- Date: Wed, 8 Jun 2005 08:39:51 -0700
On Jun 8, 2005, at 8:13 AM, Clark Cox wrote:
for example the code:
-(id) init {
self = [self initSpecial];
return self;
}
should alter everything in exactly the same way as:
-(id) init {
return [self initSpecial];
}
Yes.
Maybe.
If initSpecial calls [super init], some supers discard the original
object and return a new one.
I am fairly certain; I haven't tested it so YMMV, but the
NSDictionary returned by initWithObjectsAndKeys is not the one you
alloc'ed.
-Mark
Duck, duck, duck, duck, GOOSE!
_______________________________________________
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: | |
| >self (From: "Theodore H. Smith" <email@hidden>) |
| >Re: self (From: Clark Cox <email@hidden>) |