• 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
Re: Not documented: NSArray responds to -allObjects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Not documented: NSArray responds to -allObjects


  • Subject: Re: Not documented: NSArray responds to -allObjects
  • From: Andy Lee <email@hidden>
  • Date: Thu, 24 Oct 2013 12:18:27 -0400

On Oct 24, 2013, at 10:19 AM, Jerry Krinock <email@hidden> wrote:
> Starting somewhere after OS X 10.6, NSArray instances respond to the NSSet method -allObjects.  I can’t find any documentation of this.  Also, it is not declared in the header NSArray.h

I see it's also documented for NSEnumerator, NSHashTable, and NSPointerArray.

Might be worth filing a Radar requesting that method be made official published API like it is for the other collection classes.  There might be times when you want to be able to send allObjects to a collection without knowing what kind of collection it is, and it seems silly to have to special-case NSArray.

If Apple treats it the same as firstObject, you should only have to wait, what, ten years to get the API publicly exposed? :)

--Andy


_______________________________________________

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: Not documented: NSArray responds to -allObjects
      • From: Jerry Krinock <email@hidden>
References: 
 >Not documented: NSArray responds to -allObjects (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: NSTextField, maximum string length, bindings and NSFormatter
  • Next by Date: Re: Not documented: NSArray responds to -allObjects
  • Previous by thread: Re: Not documented: NSArray responds to -allObjects
  • Next by thread: Re: Not documented: NSArray responds to -allObjects
  • Index(es):
    • Date
    • Thread