Instance Method

insertRowAtIndex:withType:asSubrowOfRow:animate:

Adds a new row of a given type at a given location.

Declaration

- (void)insertRowAtIndex:(NSInteger)rowIndex withType:(NSRuleEditorRowType)rowType asSubrowOfRow:(NSInteger)parentRow animate:(BOOL)shouldAnimate;

Parameters

rowIndex

The index at which the new row should be inserted. rowIndex must be greater than parentRow, and much specify a row that does not fall amongst the children of some other parent.

rowType

The type of the new row.

parentRow

The index of the row of which the new row is a child. Pass -1 to indicate that the new row should be a root row.

shouldAnimate

YES if creation of the new row should be animated, otherwise NO.

Discussion

See Also

Manipulating Rows

- addRow:

Adds a row to the receiver.

- removeRowAtIndex:

Removes the row at a given index.

- removeRowsAtIndexes:includeSubrows:

Removes the rows at given indexes.