A number of set and array fixes and added tests for unordered accessor pattern in key value coding.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2010-12-25 02:18:02 -08:00
1 parent 232f1d008d
commit 9b75e37e1f
4 files changed
+97 -6

No files matched your search

+2 -5
View File
@@ -814,10 +814,7 @@ CPEnumerationReverse = 1 << 1;
*/
- (CPArray)arrayByAddingObject:(id)anObject
{
var array = [self copy];
array.push(anObject);
return array;
return self.concat(anObject);
}
/*!
@@ -826,7 +823,7 @@ CPEnumerationReverse = 1 << 1;
*/
- (CPArray)arrayByAddingObjectsFromArray:(CPArray)anArray
{
return slice(0).concat(anArray);
return self.concat(anArray);
}
/*