OSDN Git Service
(root)
/
kcd
/
KCD.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc782e6
)
明にNSManagedObjectContextを使用しないようにした
author
masakih
<masakih@users.sourceforge.jp>
Thu, 26 Oct 2017 15:48:46 +0000
(
00:48
+0900)
committer
masakih
<masakih@users.sourceforge.jp>
Thu, 26 Oct 2017 15:48:46 +0000
(
00:48
+0900)
KCD/SlotItemMapper.swift
patch
|
blob
|
history
diff --git
a/KCD/SlotItemMapper.swift
b/KCD/SlotItemMapper.swift
index
9acfeec
..
93600eb
100644
(file)
--- a/
KCD/SlotItemMapper.swift
+++ b/
KCD/SlotItemMapper.swift
@@
-104,8
+104,7
@@
final class SlotItemMapper: JSONMapper {
return
}
- guard let moc = slotItem.managedObjectContext,
- let masterSlotItem = moc.object(with: mSlotItem.objectID) as? MasterSlotItem else {
+ guard let masterSlotItem = configuration.editorStore.object(of: MasterSlotItem.entity, with: mSlotItem.objectID) else {
print("Can not convert to current moc object")
return