Latest | 1.1.1 |
---|---|
Homepage | https://github.com/kylef/KFData |
License | BSD |
Platforms | osx 10.7, ios 5.0, requires ARC |
Authors |
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.
Latest podspec
{ "name": "KFData", "version": "1.1.1", "license": "BSD", "summary": "Lightweight Core Data wrapper.", "homepage": "https://github.com/kylef/KFData", "authors": { "Kyle Fuller": "[email protected]" }, "social_media_url": "https://twitter.com/kylefuller", "source": { "git": "https://github.com/kylef/KFData.git", "tag": "1.1.1" }, "requires_arc": true, "platforms": { "osx": "10.7", "ios": "5.0" }, "default_subspecs": "Essentials", "header_dir": "KFData", "subspecs": [ { "name": "Attribute", "dependencies": { "QueryKit": [ "~> 0.8.3" ] }, "ios": { "source_files": "KFData/Attribute/*.{h,m}" }, "osx": { "source_files": "KFData/Attribute/*.{h,m}" } }, { "name": "Manager", "dependencies": { "QueryKit": [ "~> 0.8.3" ] }, "ios": { "source_files": "KFData/Manager/*.{h,m}" }, "osx": { "source_files": "KFData/Manager/*.{h,m}" } }, { "name": "Core", "ios": { "frameworks": "CoreData", "source_files": [ "KFData/KFData.h", "KFData/Core/*.{h,m}" ] }, "osx": { "frameworks": "CoreData", "source_files": [ "KFData/KFData.h", "KFData/Core/*.{h,m}" ] } }, { "name": "Store", "ios": { "frameworks": "CoreData", "source_files": "KFData/Store/*.{h,m}", "public_header_files": "KFData/Store/KFDataStore.h", "private_header_files": "KFData/Store/KFDataStoreInternal.h" }, "osx": { "frameworks": "CoreData", "source_files": "KFData/Store/*.{h,m}", "public_header_files": "KFData/Store/KFDataStore.h", "private_header_files": "KFData/Store/KFDataStoreInternal.h" } }, { "name": "UI", "dependencies": { "KFData/Manager": [] }, "platforms": { "ios": "5.0" }, "ios": { "frameworks": [ "UIKit", "CoreData" ], "source_files": "KFData/UI/*.{h,m}" } }, { "name": "Essentials", "dependencies": { "KFData/Core": [], "KFData/Store": [], "KFData/Attribute": [], "KFData/Manager": [] }, "ios": { "dependencies": { "KFData/UI": [] } } }, { "name": "Compatibility", "dependencies": { "KFData/Core": [], "KFData/Manager": [] }, "header_dir": "KFData/Compatibility", "source_files": "KFData/Compatibility/*.{h,m}" } ] }
Sat, 30 Jul 2016 09:34:03 +0000