Skip to content
This repository was archived by the owner on Nov 9, 2018. It is now read-only.

Latest commit

 

History

History
27 lines (16 loc) · 819 Bytes

File metadata and controls

27 lines (16 loc) · 819 Bytes

#CoreDataKit

CoreDataKit is a small convenience wrapper framework written in Swift.

The Stack

The CDKStack class provides a simple interface to create a simple Core Data Stack with only a few lines of code. In the following example a fully functional stack is instanciated, popullated with a persistent store and made into a shared instance.

Instantiation

A CDKStack will by default initialize with a merged Model from all Bundles but can be initialized with an optional Model.

CDKStack *stack = [[CDKStack alloc] init];

NSManagedObjectModel *model = [[NSManagedObjectModel alloc] init];
CDKStack *stack = [[CDKStack alloc] initWithModel:model];

Store

Adding a store will by default initialize an SQLite store named after the main bundles executable.

[stack addStore];