On Thu, Nov 13, 2008 at 3:58 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > Does anyone know whether methods such as: > > [NSArray initWithArray:<someArray> copyItems:YES]; > > continue to deep-copy items for further collections within the root > collection, or do they fall back to a shallow copy (retaining)? > > If no-one knows I can spend an hour or two doing some experiments but if > it's just a known 'yes' or 'no' I'd rather save the time!
It will send the -copy method to each of the items in the array, and insert the resulting copies into the new array. So, context specific. If the items are Cocoa collections, that means shallow copies of items. -Ken _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
