Memory Management Problem
Hi I'm little confused on memory management.
I have for example an array variable declared in the header file of MyClass with its getter and setter.
What's the difference between
myObject=[[NSMutableArray alloc] init];
or
self.myObject=[NSMutableArray array];
or
self.myObject=[[NSMutableArray alloc] init];
and which is correct?
|