• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
sortedArrayUsingFunction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: sortedArrayUsingFunction
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Drawing over a transparent background
  • Next by Date: Re: Drawing over a transparent background
  • Previous by thread: Re: Where to get Frameworks for AVFoundation.framework?
  • Next by thread: Re: sortedArrayUsingFunction
  • Index(es):
    • Date
    • Thread