• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSArray behavior changes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSArray behavior changes?
      • From: "Erik M. Buck" <email@hidden>
    • Re: NSArray behavior changes?
      • From: Ondra Cada <email@hidden>
    • Re: NSArray behavior changes?
      • From: Andreas Monitzer <email@hidden>
References: 
 >NSArray behavior changes ? (From: Raphael Sebbe <email@hidden>)
 >Re: NSArray behavior changes ? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Drag a JPEG from Finder to Cocoa
  • Next by Date: Re: NSArray behavior changes?
  • Previous by thread: Re: NSArray behavior changes ?
  • Next by thread: Re: NSArray behavior changes?
  • Index(es):
    • Date
    • Thread