Hi,
i need to set up a IS-A relationship with coredata.
I have a Page class which has the following structure
PROPERTY title PROPERTY layoutType RELATIONSHIP layout
Now, i have three classes: ImageLayout, TextLayout, and SlideshowLayout. I want the Page.layout relationship to refer to one of these three classes depending on the layoutType property.
How can i do with coredata? Or there is another way to do this? Keep in mind that the number of layouts can grow in the future, so i can't simply put all the properties in page and leave empty the ones that are not related to the layout of the page.
Thank you in advance!