Deprecation of legacy ValueContainer and RelationshipContainer properties in favor of @Field propertyWrapper counterpart

This commit is contained in:
John Estropia
2024-01-28 22:11:21 +09:00
parent 4b6d9a54e7
commit 7c2129e38f
38 changed files with 936 additions and 2861 deletions

View File

@@ -1440,21 +1440,6 @@ extension ListMonitor where O: NSManagedObject {
return self.sectionInfo(safelyAt: section)?.objects as! [O]?
}
// MARK: Deprecated
@available(*, deprecated, renamed: "objects(in:)")
public func objectsInSection(_ section: Int) -> [O] {
return self.objects(in: section)
}
@available(*, deprecated, renamed: "objects(safelyIn:)")
public func objectsInSection(safeSectionIndex section: Int) -> [O]? {
return self.objects(safelyIn: section)
}
}
@@ -1500,12 +1485,6 @@ extension ListMonitor where O: CoreStoreObject {
return (self.sectionInfo(safelyAt: section)?.objects)?
.map({ O.cs_fromRaw(object: $0 as! NSManagedObject) })
}
// MARK: Deprecated
@available(*, deprecated, renamed: "O")
public typealias D = O
}