Extensions for CoreData on iOS