I need to store two types of objects, Feed
and Folder
, in an array in Core Data. For example:
Array
Feed
Feed
Folder
Feed
Folder
Folder
…etc...
I know about BWOrderedManagedObject
for storing objects in order in Core Data, but I'm not sure how to store mixed objects (the array needs to be mixed, since the items are in a specific order). Ideally, I'd have a relationship that pointed to two entities, but obviously this isn't possible.
The only solution I can see is to make the array a Transformable
attribute. However, what about the objects stored within the array? Will I need to manage all of them myself or will they still be managed by Core Data?