私は方法にNSEntityDescription setCompoundIndexesが見つからない
- compoundIndexes
- のMac OS X 10.7 SDKでNSEntityDescriptionでsetCompoundIndexes
をしないのです。しかし、これはiOS5.0 SDKで利用可能です。一方、
Xcodeは、複合インデックスについて非常によく知っているにもマック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>
それはAppleがちょうどのメソッドの宣言を含めるのを忘れていることもできますMac API?ここで
は、ドキュメントは、次のとおりです。
マック:http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/CoreDataFramework/Classes/NSEntityDescription_Class/NSEntityDescription.html(ここでは複合インデックスを管理するための部分が欠落している)