Re: initializers in Categories?
Re: initializers in Categories?
- Subject: Re: initializers in Categories?
- From: "A.M." <email@hidden>
- Date: Thu, 13 Jul 2006 16:02:04 -0400 (EDT)
> I wasn't talking about overriding an existing -init method (although
> that's another good question - should you?), I was talking about *adding*
> new initializers via a Category.
Ok- sorry. Adding methods is always fine- but be wary of superclass
methods too.
Overwriting methods is muddy water (even though categories allow it). The
reason is that one would have to perform backflips to call the original
method. Also, if one overwrites the same method multiple times with
categories, it's not immediately clear which method will prevail (though
it is deterministic).
-M
_______________________________________________
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