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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to