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

removeChildAtIndex:

Removes the child node of the receiver located at a specified position in its array of children. 子それらからなるそれの配列においてある指定された場所に位置する、レシーバの子ノードを取り除きます。

Declaration 宣言

- (void)removeChildAtIndex:(NSUInteger)index;

Parameters パラメータ

index

An integer identifying the position of an child in the receiver's array. If index is less than zero or greater than the number of children minus one, an out-of-bounds exception is raised. ある子の位置をレシーバのもつ配列の中で識別している整数。indexがゼロより小さいかまたは子の数から1引くより大きいならば、「境界外」例外が引き起こされます。

Discussion 議論

Subsequent children have their indexes decreased by one. The removed NSXMLNode object is autoreleased. 後に続く子それらは、それらのインデックスを1だけ減じます。削除されたNSXMLNodeオブジェクトは、オートリリースされます。

See Also 参照

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