Chirone Chirone - 1 year ago 240
Objective-C Question

Why is there no up to date core data documentation for Xcode 8?

It used to be so easy to create core data classes. All you would have to do is do file > new file > Managed Object Subclass and BAM! You have your class and you can use it as you'd expect for core data.

Now there's no such option. And no one is wondering where the option is.
I tried making the class manually because the core data property extension is supposed to be in the derived data now because I thought it would just work (this also means you'll always get compile errors because you can't import the necessary headers to make relationships work but that's a whole different kettle of fish)
But of course it doesn't work.

If I made an entity "Person" with attribute "name" I can't make an instance of it and access the attribute "name" even if the class file exists and even if the property extension exists.

Everywhere I've looked there's people asking about how to get their old core data objects to compile from their old projects but no one is making fresh brand new projects.

I've googled things such as
"xcode 8 core data how to create coredata classes"
"xcode 8 what is "manual/none" "class definition" "category/extension""
"xcode 8 what is manual/none class definition"
"xcode 8 make file for core data entity"
"xcode 8 where is the coredata subclass option"
"xcode 8 core data tutorial"

but nothing useful shows up. Everything is related to Xcode versions prior to 8 or has answers/questions from other people only related to the "Tool version"

How do I create core data subclasses in Xcode 8?

Answer Source

Here is the option in Xcode 8 - Create NSManagedObject Subclass

enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download