Re: [NEWBIE]: Categories, etc vs subclassing
Re: [NEWBIE]: Categories, etc vs subclassing
- Subject: Re: [NEWBIE]: Categories, etc vs subclassing
- From: Evan Schoenberg <email@hidden>
- Date: Wed, 20 Oct 2004 03:40:49 -0500
On Oct 20, 2004, at 3:34 AM, j o a r wrote:
Sure you can. The only pit fall with this approach is that you can
have multiple categories overriding the same method, and it's probably
undefined (depending on when they are loaded into the runtime) which
one will take precedence.
True, so long as the original method wasn't define in a category, your
category has precedence... but that's not a safe assumption. So I
should have said, "You can't safely override methods."
-Evan
_______________________________________________
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