Let's say i want to implement a library tool to manage different types of media. Therefore i have a base class Medium and derived classes e.g. Book and DVD which have additional properties.
My Problem is i can't figure out how to design the models correctly. I want to be able to show the media in one TableView with the basic properties from the Medium class as well as only the DVD's in another TableView with it's special properties from the derived class. And if i delete a DVD, i want it to be deleted in the Media table as well. Therefore i thought that they need to have the same data source.
What is the best way to achive this? Haven't found any example that illustrates that problem.