Core Data done right for iOS 5+/OS X 10.7+
Objective-C Ruby Makefile
Latest commit 62d80f3 Jul 29, 2016 @kylef kylef Release 1.1.1
Removes KFData.h since this is computed by CocoaPods

README.md

KFData

Build Status

Core Data done right for iOS 5+/OS X 10.7+.

Overview

KFData is a library for using Core Data, featuring many components which can be used separately or together. 1.0 is a major update to this library, and we have provided a migration guide to help you migrate to the latest version.

KFDataStore

KFDataStore is a component of KFData which is a wrapper around a Core Data stack. Using the data store, you can create a Core Data stack in various different configuration types.

Normally you would create a single KFDataStore across your whole application, (or across a whole managed object model). You can call methods on a KFDataStore instance to obtain a managed object context or perform blocks of code with a background managed object context.

KFDataStore *dataStore = [KFDataStore standardCloudDataStore];

// You can use helper methods to perform a write or read block
[dataStore performWriteBlock:^(NSManagedObjectContext*)managedObjectContext {
    Person *kylef = [Person createInManagedObjectContext:managedObjectContext];
    [kylef setName:@"Kyle Fuller"];
}];

KFAttribute and KFObjectManager

KFData used to provide two classes KFAttribute and KFObjectManager which are now superseded by QueryKit.

Installation

CocoaPods is the recommended way to add KFData to your project.

Here's an example podfile that installs KFData.

Podfile

platform :ios, '5.0'

pod 'KFData'

Note the specification of iOS 5.0 as the platform; leaving out the 5.0 will cause CocoaPods to fail with the following message:

[!] KFData is not compatible with iOS 4.3.

Documentation

There is full documentation for KFData, it can either be found on CocoaDocs or within the headers of KFData.

Contributing

Please see our contributing guide for details.

License

KFData is released under the BSD license. See LICENSE.