moredip/Frank — pull request #109 by dhemery (2012-06-18 18:36:53+00:00)
Title: Confirm deletion: Don't call unimplemented methods

This responds to the defect that Cassie Dusute reported on the Google Group: https://groups.google.com/forum/?fromgroups#!topic/frank-discuss/X_vgbCxqpQ4

The fix:

The table view's delegate need not implement tableView:didEndEditingRowAtIndexPath:, so check before sending the message.

Also guarded against deleting the cell if the data source does not support it:

If the table view's data source does not implement tableView:commitEditingStyle:forRowAtIndexPath:, then the data source does not support deletion. So return without deleting. (This may be unnecessary. Perhaps if the method isn't implemented, the confirmation button is never displayed.)