Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Replacing Class in Abstract Factory
Versions des environnements
In one app, I've sub-classed the cReportForm class and set up to call it via a tool bar button. The File/Print Report option calls the original cReportForm class by using an AbstractFactory to create a 'ReportForm'. The AbstractFactory uses the CLASSES table in the MMORTALS\COMMON30\LIBS directory. I'd like to have the File/Print Report option call my sub-class instead of the original ReportForm. What's the recommended method?
If I change the entry in the CLASSES table, then all apps that use the framework will call the sub-class, which isn't necessarily what I want. At the moment, it doesn't matter as I've only got the one app, but I might not want that sublcass fo the next one. Should the CLASSES table really be in the DATA directory (or the app base directory) for the app, instead of the MMORTALS LIBS directory?
Thanks,
June
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement