Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / Architecture / Printing in a PureMVC app... on: August 25, 2009, 11:04:12
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?
Pages: [1]