Instance Method インスタンスメソッド

doesContain:

Returns a Boolean value that indicates whether the receiver contains a given object. 与えられたオブジェクトをレシーバが含んでいるかどうかを指し示すブール値を返します。

Declaration 宣言

- (BOOL)doesContain:(id)object;

Parameters パラメータ

object

The object to search for in the receiver.

Return Value 戻り値

YES if the receiver contains object, otherwise NO.

Discussion 解説

Currently, doesContain: messages are never sent to any object from within Cocoa itself.

The default implementation for this method provided by NSObject returns YES if the receiver is actually an NSArray object and an indexOfObjectIdenticalTo: message sent to the same object would return something other than NSNotFound.

See Also 参照

Performing comparisons 比較を実行する