Re: NSString category name collision?
Re: NSString category name collision?
- Subject: Re: NSString category name collision?
- From: "Sean McBride" <email@hidden>
- Date: Tue, 26 Jan 2010 18:19:49 -0500
- Organization: Rogue Research Inc.
On 1/26/10 4:08 PM, email@hidden 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 email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden