Type Method 型メソッド

orderedSetWithObjects:count:

Creates and returns a set containing a specified number of objects from a given C array of objects. 指定された数のオブジェクトを、幾らかのオブジェクトからなるある与えられたC配列から含んでいるある集合を作成して返します。

Declaration 宣言

+ (instancetype)orderedSetWithObjects:(ObjectType  _Nonnull const *)objects 
                                count:(NSUInteger)cnt;

Parameters パラメータ

objects

A C array of objects to add to the new ordered set. 新しい順序集合に加えることになるオブジェクトからなるC配列。

If the same object appears more than once in objects, it is added only once to the returned ordered set. Each object receives a retain message as it is added to the set. 同じオブジェクトが一度以上 objects に現れるならば、それはただ一度だけこの返される順序集合において加えられます。各オブジェクトは、それが集合に加えられるとき保有メッセージを受け取ります。

cnt

The number of objects from objects to add to the new set. objectsから新しい集合に加えられることになるオブジェクトの数。

Return Value 戻り値

A new ordered set containing cnt objects from the list of objects specified by objects. cnt 個のオブジェクトをobjectsで指定されるオブジェクトのリストから含んでいる新しい順序集合。

See Also 参照

Creating an Ordered Set 順序集合を作成する

Related Documentation 関連文書