Hello, Still new to the memory management in iPhone apps, I have a newbee question. Let say I have some method that use attributes of the AppDelegate. At the beginning of those methods, I get the delegate like:
// Get delegate
MyAppDelegate *delegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
Do I need to perform some kind of release at the end of the method (I was thinking of adding [delegate release] at the end of each methods like this one).
Generally speaking, do we have to release, at the end of the method, each object variables (NSString, NSData, ...) that were created within this method ?
Thanks a lot, Luc