From 5463e5ca5506f7dcf51001f53c2cf160ff16be53 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Sat, 13 Feb 2010 19:17:38 -0300 Subject: [PATCH] Fixed: CPArray insertObject:inArraySortedByDescriptors: did not return the index into which the object was inserted. This would have broken CPArrayController's addObject code. --- Foundation/CPArray.j | 1 + 1 file changed, 1 insertion(+) diff --git a/Foundation/CPArray.j b/Foundation/CPArray.j index e10f8e8b0..70d33f9db 100755 --- a/Foundation/CPArray.j +++ b/Foundation/CPArray.j @@ -524,6 +524,7 @@ index = -result-1; [self insertObject:anObject atIndex:index]; + return index; } /*!