Re: [iphone] Release Navigation View Controller Question

2010-01-19 Thread Philip Vallone
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

Re: [iphone] Release Navigation View Controller Question

2010-01-18 Thread Alexander Spohr
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

Re: [iphone] Release Navigation View Controller Question

2010-01-18 Thread 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; NSMutableArray *tableList; NSMutableArray *cfrTitleLis

Re: [iphone] Release Navigation View Controller Question

2010-01-17 Thread Philip Vallone
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

Re: [iphone] Release Navigation View Controller Question

2010-01-17 Thread Tom Davie
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