NSArray behavior changes ?
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