sortedArrayUsingFunction
sortedArrayUsingFunction
- Subject: sortedArrayUsingFunction
- From: Boyd Collier <email@hidden>
- Date: Mon, 24 Aug 2009 15:46:23 -0700
The Discussion section in the current documentation for the NSArray
method sortedArrayUsingFunction: context:
reads "The new array contains references to the receiver’s elements,
not copies of them." Nothing is said about incrementing the retain
count of the objects in the array, which seems reasonable. However,
some time ago, I copied and pasted what was in Apple's earlier
documentation into my code, and it read "The new array contains
references to the receiver's elements, not copies of them. The retain
count is incremented for each element in the receiving array." Was the
second statement, i.e. that the retain count of each element is
incremented, an error or has the method itself been changed, or am I
misunderstanding something (always a strong possibility)?
Boyd_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden