• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: private methods?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: private methods? (From: Norbert Heger <email@hidden>)

  • Prev by Date: Re: private methods?
  • Next by Date: Re: Build error MasterObjectFile.combine
  • Previous by thread: Re: private methods?
  • Next by thread: FileMaker plug-ins, anyone?
  • Index(es):
    • Date
    • Thread