They work in my application without any noticeable difference:
1)
theArray = [[NSMutableArray alloc] initWithArray:[NSKeyedUnarchiver unarchiveObjectWithData:theData]];
2)
theArray = [NSMutableArray arrayWithArray:[NSKeyedUnarchiver unarchiveObjectWithData:theData]];
[theArray retain]
However, are they really equivalent? (1) has a alloc statement, while (2) does not. Preferred than another?
source
share