mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-17 23:14:05 +01:00
WIP: editable datasources
This commit is contained in:
@@ -38,15 +38,7 @@ extension NSManagedObject {
|
||||
|
||||
return nil
|
||||
}
|
||||
if context.isTransactionContext {
|
||||
|
||||
return context.parentTransaction?.isRunningInAllowedQueue()
|
||||
}
|
||||
if context.isDataStackContext {
|
||||
|
||||
return Thread.isMainThread
|
||||
}
|
||||
return nil
|
||||
return context.isRunningInAllowedQueue()
|
||||
}
|
||||
|
||||
@nonobjc
|
||||
@@ -56,14 +48,6 @@ extension NSManagedObject {
|
||||
|
||||
return nil
|
||||
}
|
||||
if context.isTransactionContext {
|
||||
|
||||
return true
|
||||
}
|
||||
if context.isDataStackContext {
|
||||
|
||||
return false
|
||||
}
|
||||
return nil
|
||||
return context.isEditableInContext()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user