失踪我缺少的方法NSEntityDescription setCompoundIndexes在Mac OS X
- compoundIndexes
- setCompoundIndexes 在NSEntityDescription
在Mac OS X 10.7 SDK。但是,它可以在iOS5.0 SDK中使用。
的Xcode,另一方面很清楚关于复合索引,甚至在Mac OS X上创建这样xcdatamodels:
<entity name="OHLCV" parentEntity="Sample" syncable="YES">
<attribute name="close" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
<attribute name="high" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
<attribute name="low" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
<attribute name="open" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
<attribute name="volume" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
<compoundIndexes>
<compoundIndex>
<index value="open"/>
<index value="close"/>
</compoundIndex>
</compoundIndexes>
</entity>
它可以是苹果刚刚忘了,包括在方法声明Mac API?
下面是文档:
的Mac:http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/CoreDataFramework/Classes/NSEntityDescription_Class/NSEntityDescription.html(这里管理复合索引的部分缺失)