This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
Releases: 3lvis/DATASource
Releases · 3lvis/DATASource
DATASource — 4.0.0
- Added support for indexed TableViews and CollectionViews! Just like the Contacts.app. You just need to add the used CoreData attribute as
sectionName
in your initalizer. Take a look at the Demos for examples. - [BREAKING CHANGE]: Also we improved the
DATASourceDelegate
methods to be consistent with Apple's Coding Guidelines. - [BREAKING CHANGE]: Removed deprecated methods
DATASource — 3.2.1
- Fixes typo in
dataSource:canEditRowAtIndexPath:
Previously in 3.2.0
This release improves DATASource's compatibility with UITableViewDataSource, before it wasn't possible to add behaviors related to editing cells, this is possible thanks to the help of the fantastic @tommypeps.
New DATASource Delegate Methods:
/*!
* UITableView specific
*/
- (BOOL)dataSource:(UITableView *)tableView
canEditRowAtIndexPath:(NSIndexPath *)indexPath;
- (void)dataSource:(UITableView *)tableView
commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
forRowAtIndexPath:(NSIndexPath *)indexPath;
DATASource — 3.2.0
This release improves DATASource's compatibility with UITableViewDataSource, before it wasn't possible to add behaviors related to editing cells, this is possible thanks to the help of the fantastic @tommypeps.
New DATASource Delegate Methods:
/*!
* UITableView specific
*/
- (BOOL)dataSource:(UITableView *)tableView
canEditRowAtIndexPath:(NSIndexPath *)indexPath;
- (void)dataSource:(UITableView *)tableView
commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
forRowAtIndexPath:(NSIndexPath *)indexPath;
DATASource — 3.1.0
- Improved API
Added convenience methods:
/*!
* Convenience method to retreive an object at a given @c indexPath.
* \param indexPath The indexPath.
*/
- (id)objectAtIndexPath:(NSIndexPath *)indexPath;
/*!
* Convenience method to perform fetch.
*/
- (void)fetch;
Previously on 3.0.0
- Add UICollectionView support
- [BREAKING CHANGE] Add configuration block to initializer since it's required
UITableView
DATASource *dataSource = [[DATASource alloc] initWithTableView:self.tableView
fetchRequest:fetchRequest
cellIdentifier:ANDYCellIdentifier
configuration:^(UITableViewCell *cell, Task *task, NSIndexPath *indexPath) {
cell.textLabel.text = task.title;
};
self.tableView.dataSource = dataSource;
UICollectionView
DATASource *dataSource = [[DATASource alloc] initWithCollectionView:self.collectionView
fetchRequest:fetchRequest
cellIdentifier:ANDYCellIdentifier
configuration:^(UICollectionView *cell, Task *task, NSIndexPath *indexPath) {
cell.textLabel.text = task.title;
};
self.collectionView.dataSource = dataSource;
DATASource — 3.0.0
- Add UICollectionView support
- [BREAKING CHANGE] Add configuration block to initializer since it's required
UITableView
DATASource *dataSource = [[DATASource alloc] initWithTableView:self.tableView
fetchRequest:fetchRequest
cellIdentifier:ANDYCellIdentifier
configuration:^(UITableViewCell *cell, Task *task, NSIndexPath *indexPath) {
cell.textLabel.text = task.title;
};
self.tableView.dataSource = dataSource;
UICollectionView
DATASource *dataSource = [[DATASource alloc] initWithCollectionView:self.collectionView
fetchRequest:fetchRequest
cellIdentifier:ANDYCellIdentifier
configuration:^(UICollectionView *cell, Task *task, NSIndexPath *indexPath) {
cell.textLabel.text = task.title;
};
self.collectionView.dataSource = dataSource;
DATASource — 2.1
- Remove the need to make this beautiful thing to depend on DATAStack
DATASource
- Initial (second) release
ANDYFetchedResultsTableDataSource — 1.2
- Improved Example to use
DATAStack
- Cleaned up implementation
Krone-Is 1.1
- Adds a new delegate:
- (void)dataSource:(ANDYFetchedResultsTableDataSource *)dataSource
didMoveObject:(NSManagedObject *)object
withIndexPath:(NSIndexPath *)indexPath newIndexPath:(NSIndexPath *)newIndexPath;
- Support hiddens controllers (to skip fancy animations when you only need
reloadData
):
@property (nonatomic) BOOL parentControllerIsHidden;
If the controller is hidden it reloads contents without animations
- Refreshes cell contents when the
changeType
isNSFetchedResultsChangeMove
.
First official release!
1.0 Update ANDYFetchedResultsTableDataSource.m