OSDN Git Service

UAをVersion/10.0.3 Safari/602.4.8に変更
[kcd/KCD.git] / KCD / BookmarkDataStore.swift
index 06565ad..4511824 100644 (file)
@@ -8,8 +8,8 @@
 
 import Cocoa
 
-extension CoreDataIntormation {
-    static let bookmark = CoreDataIntormation("Bookmark")
+extension CoreDataConfiguration {
+    static let bookmark = CoreDataConfiguration("Bookmark")
 }
 extension CoreDataCore {
     static let bookmark = CoreDataCore(.bookmark)
@@ -22,15 +22,14 @@ class BookmarkDataStore: CoreDataAccessor, CoreDataManager {
     }
     
     required init(type: CoreDataManagerType) {
-        managedObjectContext =
-            type == .reader ? core.parentContext : core.editorContext()
+        context = (type == .reader ? core.parentContext : core.editorContext())
     }
     deinit {
-        saveActionCore()
+        save()
     }
     
     let core = CoreDataCore.bookmark
-    let managedObjectContext: NSManagedObjectContext
+    let context: NSManagedObjectContext
 }
 
 extension BookmarkDataStore {