Skip to content

Commit e132bc8

Browse files
authored
Merge pull request #71 from hyerra/master
Fix Documentation Names to Stop Xcode Warnings
2 parents 1bd68bc + e6c0b91 commit e132bc8

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

TLIndexPathTools/Controllers/TLIndexPathController.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

TLIndexPathTools/Controllers/TLIndexPathController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ - (instancetype)initWithDataModel:(TLIndexPathDataModel *)dataModel
6161
return self;
6262
}
6363

64-
- (id)initWithFetchRequest:(NSFetchRequest *)fetchRequest managedObjectContext:(NSManagedObjectContext *)context sectionNameKeyPath:(NSString *)sectionNameKeyPath identifierKeyPath:(NSString *)identifierKeyPath cacheName:(NSString *)name
64+
- (id)initWithFetchRequest:(NSFetchRequest *)fetchRequest managedObjectContext:(NSManagedObjectContext *)context sectionNameKeyPath:(NSString *)sectionNameKeyPath identifierKeyPath:(NSString *)identifierKeyPath cacheName:(NSString *)cacheName
6565
{
6666
TLIndexPathDataModel *dataModel = [[TLIndexPathDataModel alloc] initWithItems:@[] sectionNameKeyPath:sectionNameKeyPath identifierKeyPath:identifierKeyPath];
6767
if (self = [self initWithDataModel:dataModel]) {
6868
//initialize the backing controller with nil sectionNameKeyPath because we don't require
6969
//items to be sorted by section, but NSFetchedResultsController does.
70-
_backingController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:context sectionNameKeyPath:sectionNameKeyPath cacheName:name];
70+
_backingController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:context sectionNameKeyPath:sectionNameKeyPath cacheName:cacheName];
7171
_backingController.delegate = self;
7272
}
7373
return self;

0 commit comments

Comments
 (0)