If I have a class with a property that is to be retained, e.g.:
Need I manually ensure that any properties retained (such as 'name' in the above example) are released in my dealloc method? Is the answer different if I haven't implemented a dealloc method at all? This is all in a reference counted program, without the benefit of the new garbage collector.
Code:
@interface MRDemoClass: NSObject
{
NSString *name;
}
@property (retain) NSString *name;
@end
// [and, in the implementation file:]
@implementation MRDemoClass
@synthesize name;
@end