Re: NSArray behavior changes?
Re: NSArray behavior changes?
- Subject: Re: NSArray behavior changes?
- From: jgo <email@hidden>
- Date: Sat, 29 Sep 2001 02:19:38 -0700
>
Ondra Cada wrote:
>
> Raphael Sebbe wrote at Fri, 2001-09-21 11:05:05 +0200:
>
> I have a NSMutableArray that I want to copy (immutable). Basically :
>
>
>
> NSArray * array;
>
> array = [marray copy];
>
Instances of immutable classes generally should not make copies
>
on -copy, but just return themselves retained...
If it doesn't do a copy, why is it called "copy"?
If you merely want to retain, why not do a retain?
John G. Otto, Eagle Scout, Knight, Cybernetic Praxeologist
Existence, Consciousness, Identity, Life, Liberty, Property, Privacy, Justice