I have an Offer class (NSManagedObject subclass) that I want to use to handle offers made for purchases. One side of each offer is a buyer and the other side is the product. There is also a price. However these class instances that can be buyers have pretty different lineage and most likely will have different parent classes all the way back to NSManagedObject. Same thing is true for the products.
Because of this I don't want to make "Buyer" and "Product" abstract classes that these items would inherit from. I'd much rather just have protocols "buyable" and "purchasable" and have classes implement how they are purchased and how they make purchases. Unfortunately it seems as though relationships in NSManagedObjects don't allow you to specify classes by their protocols.
Any way around this? Can someone set me straight? Rob