I am working on an application using PureMVC for the first time. I have the need to print some visual data. I have a mediator, lets call it PrintAreaMediator, that is listening for the PRINT notification which is sent from another mediator which stewards a file menu (including the print button). Should the PrintAreaMediator kick off the printjob (passing its viewComponent as the print content) or should a command (PrintCommand) be used instead in which it would retrieve the PrintAreaMediator and ask for its' viewComponent to pass to the printjob? Also, where would be the best place (package wise) to place the Printer class (it is a singleton that wraps a printjob). Do many of you create a utils package as well alongside the model, view, controller?
|