CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

RMCoreDataStack 0.1.6

RMCoreDataStack 0.1.6

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release May 2015

Maintained by Rob MacEachern.



Usage

In your own project

  1. Install via CocoaPods

    pod 'RMCoreDataStack'
    
  2. Import the public header

    #import <RMCoreDataStack/RMCoreDataStack.h>
    
  3. Setup your stack

    self.coreDataStack = [[RMCoreDataStack alloc] init];
    self.coreDataStack.delegate = self;
    [self.coreDataStack constructWithConfiguration:nil];
    
  4. Grab the NSManagedObject context and start persisting!

    NSManagedObjectContext context = self.coreDataStack.managedObjectContext;
    // pass context to your custom objects and view controllers
    

If you need to customize the configuration of the core data stack you can do so by creating an RMCoreDataConfiguration and passing it to the constructWithConfiguration: method.

Demo project

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

The BasicDemo is based on the XCode Master-Detail Application template. The only changes are in RMAppDelegate.

Requirements

The project is currently configured to support iOS 7 and higher. OSX is not currently supported but it will be soon.

Installation

Author

Rob MacEachern, [email protected]

License

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