1// 2// NSArray_DeepMutableCopy.m 3// Pixen-XCode 4// 5// Created by Joe Osborn on Sat Jan 24 2004. 6// Copyright (c) 2004 Open Sword Group. All rights reserved. 7// 8 9#import "NSArray_DeepMutableCopy.h" 10 11 12@implementation NSArray(DeepMutableCopy) 13- deepMutableCopy 14{ 15 id new = [[NSMutableArray alloc] initWithCapacity:[self count]]; 16 id enumerator = [self objectEnumerator]; 17 id current; 18 while ( ( current = [enumerator nextObject] ) ) 19 { 20 [new addObject:[[current copy] autorelease]]; 21 } 22 return new; 23} 24@end 25