Re: private methods?
Re: private methods?
- Subject: Re: private methods?
- From: Ondra Cada <email@hidden>
- Date: Fri, 19 Oct 2001 13:11:39 +0100
Norbert,
>
>>>>> Norbert Heger (NH) wrote at Fri, 19 Oct 2001 12:22:39 +0200:
NH> But you have to be careful with those underscore method names if you
NH> extend existing classes via subclassing or categories. Apple also uses
NH> leading underscores for its private methods...
NH>
NH> Unfortunately, there seem to be lots of private framework mehods
NH> _without_ a leading underscore as well...
Yep. The name clashes of methods from categories (and/or subclasses) are
IMHO the worst ObjC drawback, alas -- so far as my imagination reaches --
without a decent solution altogether (I am afraid you can't reasonably use
prefixes/postfixes or even namespaces with methods, if you want the code to
be readable...).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc