@@ -60,7 +60,8 @@ extern NSString * kTLIndexPathUpdatesKey;
6060 it can be replaced with a model containing a "no results" item.
6161
6262 @param controller the index path controller that sent the message.
63- @param updates the updates object that can be used to perform batch updates on a table or collection view.
63+ @param oldDataModel the old data model used before the update.
64+ @param updatedDataModel the new data model returned after the update.
6465 @returns an alternative data model to use instead of `updatedDataModel` or `nil` to use `updatedDataModel`
6566
6667 */
@@ -167,7 +168,7 @@ extern NSString * kTLIndexPathUpdatesKey;
167168/* *
168169 Returns an index path controller initialized with the given items.
169170
170- @param items the aray of items
171+ @param items the array of items
171172 @return the index path controller with a default data model representation of the given items
172173
173174 A default data model is initialized with items where the properties `identifierKeyPath`,
@@ -187,15 +188,15 @@ extern NSString * kTLIndexPathUpdatesKey;
187188 Returns an index path controller initialized with the given fetch request and
188189 configuration parameters.
189190
190- @param fetchRequest
191- @param context
192- @param sectionNameKeyPath
193- @param identifierKeyPath
194- @param cacheName
191+ @param fetchRequest the fetch request used to do the fetching
192+ @param context the managed object context used to fetch objects
193+ @param sectionNameKeyPath the key path on the fetched objects used to determine the section they belong to
194+ @param identifierKeyPath how the identifier should be generated
195+ @param cacheName the name of the file used to cache section information
195196 @return the index path controller with a default data model representation of the given fetch request
196197
197198 */
198- - (instancetype )initWithFetchRequest : (NSFetchRequest *)fetchRequest managedObjectContext : (NSManagedObjectContext *)context sectionNameKeyPath : (NSString * __nullable)sectionNameKeyPath identifierKeyPath : (NSString * __nullable)identifierKeyPath cacheName : (NSString * __nullable)name ;
199+ - (instancetype )initWithFetchRequest : (NSFetchRequest *)fetchRequest managedObjectContext : (NSManagedObjectContext *)context sectionNameKeyPath : (NSString * __nullable)sectionNameKeyPath identifierKeyPath : (NSString * __nullable)identifierKeyPath cacheName : (NSString * __nullable)cacheName ;
199200
200201#pragma mark - Configuration information
201202/* * @name Configuration information */
@@ -283,7 +284,7 @@ extern NSString * kTLIndexPathUpdatesKey;
283284 fetch request (and perform fetch), in-memory sort descriptors, and in-memory
284285 predicate as a single update.
285286
286- @param udpates a block that makes changes to the controller
287+ @param updates a block that makes changes to the controller
287288 @param completion a block to be executed after the batch updates are performed.
288289 Note that controller:didUpdateDataModel: is called before this block.
289290
0 commit comments