I am trying to generate classes for my .xcdatamodel entities, but am not given the Manage Object Class option when I click on an entity and select File>New File. I've looked under both the iPhone and Mac OS X catagories, but it is not listed anywhere.
Here are the steps I am taking,
I create a new project being sure to check the "Use Core Data" checkbox. Once the project is created, I open .xcdatamodel, create an entity, and add a few attributes. Next, I click on the entity and choose File>New File, but all I see are only Object开发者_运维问答ive-C, Objective-c test case class, and UIVewController subclass.
Am I missing a step?
Thanks in advance
Take a look at the Core Data Tutorial for iPhone OS and look at this section: Custom Managed Object Subclass. If you still aren't seeing the Core Data related items for the iPhone OS check the version of the SDK you are targeting. I believe Core Data has only been available since SDK 3.
Had the same problem. Restarting x-code helped me.
精彩评论