WIP: simpler bridging

This commit is contained in:
John Estropia
2016-03-24 21:22:58 +09:00
parent 09708e587c
commit 90369cf994
14 changed files with 765 additions and 546 deletions

View File

@@ -27,16 +27,6 @@ import Foundation
import CoreData
// MARK: - InMemoryStore
extension InMemoryStore: CoreStoreBridgeable {
// MARK: CoreStoreBridgeable
public typealias ObjCType = CSInMemoryStore
}
// MARK: - CSInMemoryStore
/**
@@ -112,10 +102,20 @@ public final class CSInMemoryStore: NSObject, CSStorageInterface, CoreStoreBridg
// MARK: CoreStoreBridge
public let swift: InMemoryStore
internal let swift: InMemoryStore
public required init(_ swiftObject: InMemoryStore) {
self.swift = swiftObject
}
}
// MARK: - InMemoryStore
extension InMemoryStore: CoreStoreBridgeable {
// MARK: CoreStoreBridgeable
internal typealias ObjCType = CSInMemoryStore
}