Re: Not documented: NSArray responds to -allObjects
Re: Not documented: NSArray responds to -allObjects
- Subject: Re: Not documented: NSArray responds to -allObjects
- From: Jerry Krinock <email@hidden>
- Date: Fri, 25 Oct 2013 12:06:57 -0700
On 2013 Oct 24, at 09:18, Andy Lee <email@hidden> wrote:
> Might be worth filing a Radar requesting that method be made official published API like it is for the other collection classes…
Well, I did a document feedback, but not on NSArray. Instead I suggested adding text like the following to the Discussion of -respondsToSelector: in the "NSObject Protocol Reference":
"Also, be careful not to infer from the result of this message that the receiver is or is not of a certain class. Your code, included libraries, or undocumented methods in Cocoa may implement the subject slector in unexpected classes. For example, in recent versions of Mac OS X, Cocoa silently implements -allObjects in NSArray.”
_______________________________________________
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