iphone Programming Glossary: fooarray
iPhone memory management (with specific examples/questions) http://stackoverflow.com/questions/4543895/iphone-memory-management-with-specific-examples-questions Say I have an NSMutableArray variable. In my class when I initialize it do I need to call a retain on it Do I do fooArray NSMutableArray alloc init retain or fooArray NSMutableArray alloc init Does doing NSMutableArray alloc init already set.. In my class when I initialize it do I need to call a retain on it Do I do fooArray NSMutableArray alloc init retain or fooArray NSMutableArray alloc init Does doing NSMutableArray alloc init already set the retain count to 1 so I wouldn't need to call.. I ask about the retain because I'm a bit confused about how @property 's automatic setter works. If I had set fooArray to be a @property with retain set Objective C will automatically create the following setter right void setFooArray NSMutableArray..
|