Returns a Boolean value that indicates whether a given object is present in the array.
Mac Catalyst 13.0+Beta
An object to look for in the array.
YES if anObject is present in the array, otherwise NO.
Starting at index 0, each element of the array is checked for equality with anObject until a match is found or the end of the array is reached. Objects are considered equal if isEqual: returns YES.
To determine if the array contains a particular instance of an object, you can test for identity rather than equality by calling the indexOfObjectIdenticalTo: method and comparing the return value to NSNotFound.
Returns the lowest index whose corresponding array value is equal to a given object.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.