Realm0.87.0で増えたRLMResultsクラスの使い方
Realmのバージョンアップ頻度高いなー。。
ソース:Realm Cocoa 0.87.0 available now
RLMArray has been split into two classes: RLMArray and RLMResults.
これまであったRLMArray
クラスが、RLMArray
RLMResults
の2クラスに分割されたらしいです。
じゃあいったいどう使い分ければ良いのかというと…
RLMArray is now used only for to-many properties on RLMObject classes, while RLMResults is used for all of the querying and sorting methods.
RLMArray
クラスはRLMObject(=Modelクラス)にしか使わず、その他のクエリ結果やソート用途には全てRLMResults
に使う、という翻訳で良いのかな。