Skip navigation.
 
mlRe: What's the behavior for two categories with the same method extensions?
FROM : Vince DeMarco
DATE : Mon Nov 18 19:01:10 2002

On Sunday, November 17, 2002, at 05:24  PM, Gregory Gerard wrote:

> Say I write a category extending NSString with -someTrivialMethod.
>  Then, I load a plugin from a third party which does the exact same
> thing but who has different behavior (possibly radically).
>
> Is there a cheap way to detect this before or after the fact?  What
> happens if I unload the plugin?  Does the category defined in the
> plugin pop-off giving me back my original behavior?
>


The last one loaded wins.

The best (well an acceptable solution) is instead of calling the
category something common call it something weird

like

_ggerard_mac_com_someTrivialMethod

vince




Related mailsAuthorDate
mlWhat's the behavior for two categories with the same method extensions? Gregory Gerard Nov 17, 17:25
mlRe: What's the behavior for two categories with the same method extensions? John C. Randolph Nov 18, 16:33
mlRe: What's the behavior for two categories with the same method extensions? Vince DeMarco Nov 18, 19:01
mlRe: What's the behavior for two categories with the same method extensions? Timothy Ritchey Nov 18, 19:24