Hey everyone,
I am trying to wrap my head around a seemingly simple concept. I would like to use CoreData to create a listing of different objects that all spawn from the same parent class. Here is example of my data Schema.
What I would like to do is create a list of all Events (with just data from the "Event" parent Class) but then when the item is clicked I can display the data that is specific to that child class.
Currently I have the list working, all I need now is a way to determine the type of the subclass of Event. If This is not clear enough, here is how I am running it currently.
Create "partyEvent"
List all "Event" objects
When clicked, show detail of the "PartyEvent" object
What I was thinking is that I could add a "type" to the "Event" class, then just cast accordingly when it is clicked?
Thanks!
AlJaMa
I am trying to wrap my head around a seemingly simple concept. I would like to use CoreData to create a listing of different objects that all spawn from the same parent class. Here is example of my data Schema.

What I would like to do is create a list of all Events (with just data from the "Event" parent Class) but then when the item is clicked I can display the data that is specific to that child class.
Currently I have the list working, all I need now is a way to determine the type of the subclass of Event. If This is not clear enough, here is how I am running it currently.
Create "partyEvent"
List all "Event" objects
When clicked, show detail of the "PartyEvent" object
What I was thinking is that I could add a "type" to the "Event" class, then just cast accordingly when it is clicked?
Thanks!
AlJaMa