Hi All,
I am learning iPhone programming. I am starting with a simple example of displaying recently used documents in a UITableView.
What I am confused about is why do I need to have several classes and why cant I just use one?
Example, My class is called RecentFileList.
I need to implement controller, delegate and datasource as well as the actual table view. Can't I just do this all in my RecentFileList Class versus having to create a RecentFileListDelegate RecentFileListController, RecentFileListDataSource class, etc, etc.
Related to this can one define a class like:
@interface FileListView : NSObject <UITableViewDelegate> <UITableViewController> <UITableViewDataSource
{
// code
}
@end
or would I just do the work to make my class a delegate and controller in init()?