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

initWithObjects:count:

Initializes a newly allocated set with a specified number of objects from a given C array of objects. 新しくアロケートされた集合を初期化します、与えられたC配列のオブジェクトからの指定された数のオブジェクトを使います。

Declaration 宣言

- (instancetype)initWithObjects:(ObjectType  _Nonnull const *)objects 
                          count:(NSUInteger)cnt;

Parameters パラメータ

objects

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

If the same object appears more than once in objects, it is added only once to the returned ordered set. 同じオブジェクトが一度以上 objects に現れるならば、それはただ一度だけこの返される順序集合において加えられます。

cnt

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

Return Value 戻り値

An initialized ordered set containing cnt objects from the list of objects specified by objects. The returned set might be different than the original receiver. cnt 個のオブジェクトをobjects で指定されるオブジェクトのリストから含んでいる初期化された順序集合。返される集合は、オリジナルのレシーバとは異なるかもしれません。

This method is a designated initializer of NSOrderedSet. このメソッドは、NSOrderedSetの指定イニシャライザです。

See Also 参照

Initializing an Ordered Set 順序集合を初期化する

Related Documentation 関連文書