WIP: Objective-C bridge

This commit is contained in:
John Estropia
2016-03-16 21:23:41 +09:00
parent d9422f7f2e
commit 21f57518c8
12 changed files with 520 additions and 55 deletions

View File

@@ -38,6 +38,7 @@ public extension NSManagedObject {
Note that the internal reference to the transaction is `weak`, and it is still the developer's responsibility to retain a strong reference to the `UnsafeDataTransaction`.
*/
@nonobjc
public var unsafeDataTransaction: UnsafeDataTransaction? {
return self.managedObjectContext?.parentTransaction as? UnsafeDataTransaction