swift - Realm RLMArray as singleton? -


i want store rlmobjects in array keep order. need save array resist order of objects. possible make singleton rlmobject?

why not have following models?

@interface myobject : rlmobject // myobject contents... @end rlm_array_type(myobject);  @interface mydatastore : rlmobject @property rlmarray<myobject> *myorderedobjects; @end 

you make singleton myobject , store ordered rlmobjects in array property.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -