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

insertChild:atIndex:

Inserts a node object at specified position in the receiver’s array of children. あるノードオブジェクトをレシーバのもつ子それらの配列の中の指定された位置で挿入します。

Declaration 宣言

- (void)insertChild:(NSXMLNode *)child 
            atIndex:(NSUInteger)index;

Parameters パラメータ

child

The NSXMLNode object to be inserted. The added node must be an NSXMLNode object representing a comment, processing instruction, or the root element. 挿入することになるNSXMLNodeオブジェクト。加えられたノードは、あるNSXMLNodeオブジェクトで、コメント、処理命令、またはルート要素を表していなければなりません。

index

An integer specifying the index of the children array to insert child. The indexes of children after the new child are incremented. If index is less than zero or greater than the number of children, an out-of-bounds exception is raised. childを挿入することになる子配列のインデックスを指定しているある整数。新しい子の後の子それらのインデックスは、漸増されます。indexがゼロより小さいかまたは子それらの数より大きいならば、「境界外」例外が引き起こされます。

See Also 参照

Adding and Removing Child Nodes 子ノードの追加と除去