3

In Xcode, I can select ONE entity and go to Editor > Create NSManagedObject Subclass. This bit is fine. I get the class out of ONE entity.

However....

The other day, somehow I got Xcode instead to pop up a dialog with all my entities with checkboxes next to them. I could select multiple entities all at once, which it would then create the classes for all selected.

I can't seem to find how I did this !!! Anybody use this and know how?

(Don't suggest me to use mogenerator. I know about this.)

4

1 回答 1

7

我想到了。这太荒谬了。

选择/突出显示一个实体,然后突出显示该实体中的一个属性......任何一个......

...然后转到“编辑器 > 创建 NSManagedObject 子类”。

显然你也可以只突出显示多个实体,然后在上面做同样的事情,虽然我没有尝试过。

于 2012-07-27T19:22:34.000 回答