On 1/26/10 4:08 PM, jonat...@mugginsoft.com said:

>The docs say:
>
>A category cannot reliably override methods declared in another category
>of the same class.
>This issue is of particular significance since many of the Cocoa classes
>are implemented using categories.
>A framework-defined method you try to override may itself have been
>implemented in a category, and so which implementation takes precedence
>is not defined.
>
>Is this just one of the things we have to put up with as the price for
>dynamism or can this problem be pre-empted?

Yes.

>I added a name space prefix to my method definition and the exception
>departed.

You can add the following env var to debug these problems btw:
OBJC_PRINT_REPLACED_METHODS.

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to