Network tableview model

28 views
Skip to first unread message

Zager

unread,
Oct 14, 2012, 5:51:49 PM10/14/12
to nimb...@googlegroups.com
Hi,

Wouldn't it be nice to have a model which has a more event driven nature by separating request events and response events? Something like protocol NIMutableTableViewModelDelegate but then with:

- (void)didRemoveObjectsAtIndexPaths:(NSArray*)indexPaths;

- (void)didInsertObjectsAtIndexPaths:(NSArray*)indexPaths;

- (void)didUpdateObjectsAtIndexPaths:(NSArray*)indexPaths;

- (void)didRemoveSectionsAtIndexes:(NSIndexSet*)indexes;

- (void)didInsertSectionsAtIndexes:(NSIndexSet*)indexes;

- (void)didUpdateSectionsAtIndexes:(NSIndexSet*)indexes;

As such the controller would easily know what to update in the view. This would fit much better in a scenario where data is retrieved from a slow source e.g. the internet.

Reply all
Reply to author
Forward
0 new messages