On 26 Jan 2010, at 17:28, Jens Alfke wrote: > > On Jan 26, 2010, at 8:08 AM, jonat...@mugginsoft.com wrote: > >> 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? >> I added a name space prefix to my method definition and the exception >> departed. > > Yes. To avoid these kinds of collisions, if you add a category method to an > external class you should add some sort of hopefully-unique prefix to its > name. In my Mooseyard software I use the same prefix I use for my class names > ("MY") only lowercased, with an underscore — e.g. -[NSString my_rot13]. > Thanks Jens.
That's a point of good practice that I don't currently follow. Once bitten etc. Jonathan _______________________________________________ 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