I am on xcode 6.1 and developing for iOS 8.1. I have a simple project called CoreDataTest where I play with master data.
Model:
import CoreData class Licence: NSManagedObject { @NSManaged var name: String }
and

Now I want to create a license object. This is what I need before creating the object:
let appDel:AppDelegate = UIApplication.sharedApplication().delegate as AppDelegate let context:NSManagedObjectContext = appDel.managedObjectContext! let ent = NSEntityDescription.entityForName("Licence", inManagedObjectContext: context)
The problem is that xcode does not provide the correct constructor for the object. When I start typing:
var newLicence = Licence(..
I do not get automatic completion, as in this example:

I just get NSManagedObject () as auto completion. Any ideas on something wrong?
source share