smart way to load entityNames from the model file

This commit is contained in:
John Rommel Estropia
2015-02-22 22:01:23 +09:00
parent f6ced13577
commit 8f77818015
8 changed files with 88 additions and 44 deletions

View File

@@ -30,15 +30,17 @@ import GCDKit
/**
Okay, okay. This one's shorter.
*/
typealias HCD = HardcoreData
public typealias HCD = HardcoreData
// MARK: HardcoreData
// MARK: - HardcoreData
/**
The HardcoreData struct is the main entry point for all other APIs.
HardcoreData is the main entry point for all other APIs.
*/
public struct HardcoreData {
public enum HardcoreData {
// MARK: Public
/**
The default DataStack instance to be used. If defaultStack is not set before the first time accessed, a default-configured DataStack will be created.
@@ -110,6 +112,8 @@ public struct HardcoreData {
}
// MARK: Private
private static let defaultStackBarrierQueue = GCDQueue.createConcurrent("com.hardcoreData.defaultStackBarrierQueue")
private static var defaultStackInstance: DataStack?