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

insertChild:atIndex:

Inserts a child node in the receiver’s list of children at a specific location in the list. ある子ノードを、レシーバのもつ子それらのリストにおいて、そのリストの中のある指定された位置で挿入します。

Declaration 宣言

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

Parameters パラメータ

child

An XML-node object that represents the child to insert. 挿入することになる子を表すあるXMLノードオブジェクト。

index

An integer identifying the location in the receiver's list of children to insert child. The indices of subsequent children in the list are incremented by one. childを挿入することになる、レシーバのもつ子それらのリストにおいて、場所を識別しているある整数。後に続く子それらのインデックスは、1だけ漸増されます。

See Also 参照

Manipulating Child Nodes 子ノードを操作する