tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/606-bitmap-handler-actor-injecting-to-view-componentsRobotlegs: Discussion 2014-04-19T18:08:42Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/86533312011-07-21T14:53:37Z2011-07-21T14:53:37ZBitmap Handler Actor "injecting" to View components<div><p>Hi, Sorry for the delay in this question appearing - for some
reason it was marked as spam. Hopefully you'll get some responses
now!</p>
<p>My own preferred strategy for this is to have a singleton
'viewBitmapSheetManager' that is injected into mediators. in
onRegister, the mediator passes its view to the manager class. The
manager then provides the view with the bitmaps (or skin in my
case) and the manager itself keeps track of which views are already
processed so that they don't get re-processed if it's not
required.</p>
<p>How you want to deal with composite views is up to you - but
it'd make sure that logic was in this dedicated class and not your
mediator or your view.</p>
<p>hth,</p>
<p>Stray</p></div>Stray