title: Objective-C: how to declare a static member that is visible to subclasses?
body: <p>I'm declaring a family of static classes that deals with a communications protocol. I want to declare a parent class that process common messages like ACKs, inline errors...</p>
  
  <p>I need to have a static var that mantain the current element being processed and I want to declare it in the parent class.</p>
  
  <p>I do it like this:</p>
  
  <p>parent.m</p>
  
  <pre><code>@implementation ServerParser
  
  static NSString * currentElement;
  </code></pre>
  
  <p>but the subclasses are not seing the currentElement.</p>