Latest 0.1.3
Homepage https://github.com/SuperMarioBean/SMBFetchedResultsController
License MIT
Platforms ios 7.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/David Fu/SMBFetchedResultsController.svg?style=flat)](https://travis-ci.org/David Fu/SMBFetchedResultsController)
Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Use it just like NSFetchedResultsController, set it up:

- (void)viewDidLoad {
    [super viewDidLoad];

    self.dataSource = [NSMutableOrderedSet orderedSetWithObject:[[Person alloc] initWithName:@"sherry"]];
    SMBFetchedResults *fetchedResults = [[SMBFetchedResults alloc] initWithMutableData:self.dataSource];
    self.fetchedResultsController = [[SMBFetchedResultsController alloc] initWithFetchedResults:fetchedResults title:@"SMB" delegate:self];
}

insert operation to SMBFetchedResults data struct:

- (IBAction)insertButtonClick:(id)sender {
    Person *person = [[Person alloc] initWithName:@"david"];
    [self.fetchedResultsController.fetchedResults insertObject:person inDataAtIndex:0];
}

that’s it!

Requirements

Installation

SMBFetchedResultsController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "SMBFetchedResultsController"

Author

David Fu, [email protected]

License

SMBFetchedResultsController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SMBFetchedResultsController",
    "version": "0.1.3",
    "summary": "it is a simple implemtation with NSFetchedRestulsController style based on To-Many Relationship Compliance",
    "description": "SMBFetchedResultsController is inspired by Cocoa's NSFetchedResultsController style and Cocoa's KVO To-Many Relationship Compliance to support insert, delete, move, replace operation to NSOrderedSet data struct'",
    "homepage": "https://github.com/SuperMarioBean/SMBFetchedResultsController",
    "license": "MIT",
    "authors": {
        "David Fu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/SuperMarioBean/SMBFetchedResultsController.git",
        "tag": "0.1.3"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "SMBFetchedResultsController": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This