Re: memory management of app delegate on iOS

2010-07-19 Thread Kyle Sluder
On Mon, Jul 19, 2010 at 9:32 PM, Matt Neuburg wrote: > Yet the UIApplication object does NOT retain its delegate. So why doesn't > the app delegate vanish in a puff of smoke? Is the MainWindow nib subject to > different memory management rules? UIApplication might be retaining the top-level objec

memory management of app delegate on iOS

2010-07-19 Thread Matt Neuburg
"Objects in the nib file are created with a retain count of 1 and then autoreleased... If you define outlets for nib-file objects, you should always define a setter method (or declared property) for accessing that outlet. Setter methods for outlets should retain their values." And indeed, if I loa