Bindings branch fixes: insertObject:inArraySortedByDescriptors: and _indexOfObject:sortedByFunction:context
1 view
Skip to first unread message
Alexander Ljungberg
unread,
Nov 20, 2009, 9:42:51 PM11/20/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Cappuccino & Objective-J Development List
These changes only relate to the Bindings branch, although they are
found in my 'jakebindings' branch which combines the two. I think they
can be lifted cleanly into bindings with no jake carryover.
CPArray insertObject:inArraySortedByDescriptors: didn't work due to
some typos. Also when given an array like [1, 3, 5] and 2 to insert,
it would produce [2, 1, 3, 5] due to _indexOfObject returning 'mid'
which contained the correct midpoint for the penultimate comparison,
rather than the ultimate comparison. Also fixed a minor thing with
empty arrays.