• 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
NSArray behavior changes ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArray behavior changes ?


  • Subject: NSArray behavior changes ?
  • From: Raphael Sebbe <email@hidden>
  • Date: Fri, 21 Sep 2001 11:05:05 +0200

I just found out a problem using NSArray with the later builds of OS X (5G15).

I have a NSMutableArray that I want to copy (immutable). Basically :

NSArray *array;
array = [marray copy];

The objects in marray implement NSCopying but are *not* copied, but retained instead. This seems to have changed since the released builds of OS X, when objects in the array were copied. Could someone confirm it has ? Perhaps I am totally wrong, but that code has worked for a long time and suddenly broke...

Raphael


  • Follow-Ups:
    • Re: NSArray behavior changes ?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Spelling in classes
  • Next by Date: Re: Spelling in classes
  • Previous by thread: Re: Spelling in classes
  • Next by thread: Re: NSArray behavior changes ?
  • Index(es):
    • Date
    • Thread