I am extending an NSManagedObject class in swift and am experiencing an infinite loop when attempting to add an object to a relationship. One-To-Ones are working and yes my classes are named properly (project.class). Xcode 6.0.1. I have noticed others with this issue. Does anyone have a solution?
This is similar to this other question although this appears to be broken in Xcode 6 GM+
How to assign CoreData many-to-many relationship in Swift?
import CoreData
extension Parent {
func addChildObject(value:ChildObject) {
self.mutableSetValueForKey("child").addObject(value)
}
}