Thanks,
You are correct. I needed to retain it
@property (nonatomic, retain) NSMutableArray *tableList;
@property (nonatomic, retain) NSMutableArray *cfrTitleList;
Then dealloc it:
- (void)dealloc {
[tableList release];
[cfrTitleList release];
[super dealloc];
}
I spent
Am 18.01.2010 um 14:40 schrieb Philip Vallone:
> Hi this is a follow up question on memory management. In my class
> BrowseViewController, I have a UITableView and 2 NSMutableArrays.
>
> @interface BrowseViewController : UIViewController {
> IBOutlet UITableView *tableView;
> NSMut
Hi this is a follow up question on memory management. In my class
BrowseViewController, I have a UITableView and 2 NSMutableArrays.
@interface BrowseViewController : UIViewController {
IBOutlet UITableView *tableView;
NSMutableArray *tableList;
NSMutableArray *cfrTitleLis
Thanks Tom. Great explanation!
On Jan 17, 2010, at 6:05 AM, Tom Davie wrote:
> Yes, that code is 100% fine.
>
> Here's the logic from purely your point of view.
>
> You allocate browserviewController and in doing so take ownership.
> You do some stuff with browserviewController.
> You are fini
Yes, that code is 100% fine.
Here's the logic from purely your point of view.
You allocate browserviewController and in doing so take ownership.
You do some stuff with browserviewController.
You are finished with browserviewController, and don't want to do anything
else with it, so you resign own