title: Objective-C: How do you access parent properties from subclasses?
body: <p>If I have this class defined, how do I access the <code>someObject</code> property in subclasses without compiler errors?</p>
  
  <pre><code>@interface MyBaseClass
    // someObject property not declared here because I want it to be scoped 
    // protected. Only this class instance and subclass instances should be
    // able to see the someObject property.
  @end
  
  // This is a private interface extension...properties declared here
  // won't be visible to subclasses. However, I don't see any way to 
  // declare protected properties...
  @interface MyBaseClass (private)
     @property (nonatomic, readwrite, retain) NSObject *someObject;
  @end
  </code></pre>
  
  <p>
  
  <pre><code>@interface MySubclass : MyBaseClass 
  @end
  
  @implementation MySubclass
  
  - (id) init {
      // Try to do something with the super classes' someObject property. 
      // Always throws compile errors.
  
      // Semantic Issue: Property 'someObject' not found 
      // object of type 'MySubclass *'
      self.someObject = nil; 
  
  }
  @end
  </code></pre>
  
  <p><br><br>
  I'm obviously not understanding how inheritance works in objective-c. Could someone enlighten me?</p>