Since I witnessed the reading of my message, an idea occurred to me, and I answered my question. This resolution was rather obscure, and I decided to go ahead, create a post and answer it myself (so that any other newcomers, like me, will not depend).
My mistake was in ...
@property (copy) NSMutableArray *array;
he should have been ...
@property (retain) NSMutableArray *array;
The error did not occur in the way I executed my code, but rather in the way anObject tried to "copy" the NSMutableArray array.
As we all know ...
mutableArray = [mutableArray copy];
not always (or ever, in my experience) equal to ...
mutableArray = [mutableArray mutableCopy];
And that was the cause of my problem. Just by switching @property from (copy) to (save), I solved my problem.
Zak Jul 10 '10 at 17:27 2010-07-10 17:27
source share