Couple of Design questions.
07 Jan 2013, 17:12
Mdeh (7 posts)
Chapter 5: Approach to implementing deletion in the tableView (Page 105, book format)
The approach used to accomplish items being deleted in a plain list, is to use a create a protocol, and in a class extension use an NSMutable Array to synchronize model and view. May I ask 2 questions related to this.
1) Why do the authors choose to place the Mutable Array in a class extension ( as opposed to the header file).
2) The same outcome could conceivable be achieved by creating a class ( myClass) with the same methods etc and using that as the dataSource. Could you elucidate your thinking into using the ( more elegant, I might add) approach in the book.
|You must be logged in to comment|