title: Objective-C Private Method Dilemma
body: <p>I'm aware that Objective-C doesn't support real private methods. What I'm currently doing to declare 'private' methods is adding the following to class .m files:</p>
  
  <pre><code>@interface MyClass() 
  
  - (void) privateMethodName;
  
  @end
  </code></pre>
  
  <p><br/></p>
  
  <p><strong>The Problem:</strong></p>
  
  <p>If I now add a subclass, and want to use this 'private' method, I can't! I get the error:</p>
  
  <blockquote>
    <p>Receiver type 'SubClassName' for instance message does not declare a
    method with selector 'privateMethodName'</p>
  </blockquote>
  
  <p><br/></p>
  
  <p>So, if I don't want non-subclasses to be able to access this method, but do want subclasses to  be able to, what can I do? What is the best/proper way of achieving my goal?</p>