Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Releases: 3lvis/DATASource

DATASource — 4.0.0

04 Sep 09:27
Compare
Choose a tag to compare

DATASource — 3.2.1

13 Aug 13:25
Compare
Choose a tag to compare
  • 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

05 Aug 08:21
Compare
Choose a tag to compare

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

14 Apr 22:40
Compare
Choose a tag to compare
  • 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

08 Apr 23:32
Compare
Choose a tag to compare
  • 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

12 Feb 12:55
Compare
Choose a tag to compare
  • Remove the need to make this beautiful thing to depend on DATAStack

DATASource

12 Feb 00:14
Compare
Choose a tag to compare
  • Initial (second) release

ANDYFetchedResultsTableDataSource — 1.2

09 Feb 07:27
Compare
Choose a tag to compare
  • Improved Example to use DATAStack
  • Cleaned up implementation

Krone-Is 1.1

02 Dec 13:02
Compare
Choose a tag to compare
  • 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 is NSFetchedResultsChangeMove.

First official release!

02 Nov 11:22
Compare
Choose a tag to compare
1.0

Update ANDYFetchedResultsTableDataSource.m