I have a view controller. The view controller has a retained object called streamController, which is an NSObject subclass that handles all of the data I/O with my server. All is well, except I'm trying to figure out why some things are leaking on said streamController. I drop an NSLog in there and I never see it firing. I'm completely puzzled as to why, because I'm releasing the controller in my dealloc method for my view controller.
from view controller interface...
StreamController *streamController;
@property (nonatomic, retain) StreamController *streamController;
from view controller implementation...
@synthesize streamController;
- (id)init {
[super init];
self.streamController = [[StreamController alloc] init];
}
- (void)dealloc {
NSLog(@"dealloc view controller");
[streamController release];
[super dealloc];
}
from StreamController implementation...
- (void)dealloc {
NSLog(@"dealloc stream controller");
[super dealloc];
}
this last dealloc NEVER gets called. Why?