executeFetchRequest doesn't return the NSManagedObject subclass

前端 未结 3 658
猫巷女王i
猫巷女王i 2021-02-14 11:20

This is for XCode 6 and Swift...

I\'m trying to make a fetch request to the managed object context but it\'s not returning the correct subclass.

I have already s

3条回答
  •  轮回少年
    2021-02-14 11:38

    Using @objc(Task) seems to be working but you could also just edit the data model data modeler configuration to the name ToDoList.Task instead of just Task. That will work too and avoid Class conflicts if Task is used anywhere else in the Objective-C code.

提交回复
热议问题