title: Objective-C releasing a property declared in a category?
body: <p>I have a category on an existing class that adds a property and a few methods to the class.</p>
  
  <pre><code>@interface AClass (ACategory) {
      NSString *aProperty;
  }
  
  @property (nonatomic, retain) NSString *aProperty;
  
  @end
  </code></pre>
  
  <p>In the implementation file, I want to release this property when the object is deallocated. However, if I declare <code>dealloc</code> in this class, it will override the dealloc from the original class from what I understand. What then is the proper way to release this <code>aProperty</code> when the object is deallocated?</p>
  
  <pre><code>@implementation AClass (ACategory)
  
  @synthesize aProperty;
  
  - (void)dealloc {
      [aProperty release];
      // this will skip the original dealloc method from what I understand
      [super dealloc];
  }
  
  @end
  </code></pre>