Couple questions on the Tableview Editing mode chapter



Love the book. One of the best so far I’ve been reading but I have a couple questions on chapter 11.

  1. Where does the ‘isEditing’ property come from? Didn’t see it in the interface declarations…

  2. Why do you specify ‘[NSArray arrayWithObject: indexpath]’ when inserting rows into the table view in the tableView:commitEditingStyle:forRowIndexPath: delegate method?



Editing is a property of uiviewcontroller so it is inherited but our subclass. Rule of thumb, if you see a method/property/variable that isn’t declared by a class that is using it, walk up the class hierarchy until you find it.

The next post down in this forum has the answer to your second question: viewtopic.php?f=53&t=250