There are two documented exceptions thrown by replaceObjectAtIndex. One results from withObject being nil; in your case that is unlikely. The other is that the index exceeds the bounds of the array: are you sure there is at least one pre-existing object in the array?
|