简体   繁体   English

为什么没有最新的Xcode 8核心数据文档?

[英]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! 您所需要做的就是做文件>新文件>托管对象子类和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. 如果我创建的实体“ Person”具有属性“ name”,则即使该类文件存在且属性扩展存在,也无法创建该实体的实例并访问属性“ name”。

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" 我用谷歌搜索诸如“ xcode 8核心数据如何创建coredata类”之类的东西“ xcode 8什么是“手动/无”“类定义”“类别/扩展名”“ xcode 8什么是手动/无类定义”核心数据实体的xcode 8生成文件“” xcode 8哪里是coredata子类选项“” xcode 8核心数据教程“

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" 一切都与8之前的Xcode版本相关,或者仅与“工具版本”相关的其他人的答案/问题

How do I create core data subclasses in Xcode 8? 如何在Xcode 8中创建核心数据子类?

Here is the option in Xcode 8 - Create NSManagedObject Subclass 这是Xcode 8中的选项-创建NSManagedObject子类

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM