Allow nil when replacing objects in an array.

I want this in a little project, but I also want to consult with Deek about
it, so I've only commented out the code.
This commit is contained in:
Bill Currie 2012-12-16 13:38:19 +09:00
parent f631f514e9
commit 7ed490c434

View file

@ -288,8 +288,8 @@
{
local id tmp;
if (!anObject) // FIXME: need exceptions
[self error: "-replaceObjectAtIndex:withObject: passed nil object"];
//if (!anObject) // FIXME: need exceptions
// [self error: "-replaceObjectAtIndex:withObject: passed nil object"];
if (index >= count) // FIXME: need exceptions
[self error: "-replaceObjectAtIndex:withObject: index out of range"];