Re: behavior of -copy

2010-05-27 Thread Quincey Morris
On May 27, 2010, at 05:59, Ariel Feinerman wrote: > my question is: what does -copy for immutable > variant of immutable/mutable objects, for instance NSArray *arrayCopy = > [array copy]; returns true copy or retains one? The class of the variable 'arrayCopy' is irrelevant. If the instance being

Re: behavior of -copy

2010-05-27 Thread Mike Abdullah
On 27 May 2010, at 13:59, Ariel Feinerman wrote: > Hi, > > if i understand, -copy message implement via -retain for true immutable > objects like NSNumber, via -alloc, -init thus make true copy for mutable > objects like NSMutableArray, my question is: what does -copy for immutable > variant of