tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/929-signals-in-model-classes-are-actors-redundantRobotlegs: Discussion 2012-07-13T07:04:20Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/163297142012-05-31T08:02:17Z2012-05-31T08:02:17ZSignals in Model classes - are Actors redundant? <div><p>Models are not required to extend Actor, it (the Actor class) is
there for convenience when using events for system messaging.</p>
<p>In general I use signals for view -> mediator and direct
service -> command (or mediator) communication (ie. a command
calls a method on a service and receives a signal it can listen to
for completion notification) and rely on events for all other
system messaging, but everyones tastes and needs are different, so
you'll have to experiment a little to find out what works best for
you.</p></div>creynderstag:robotlegs.tenderapp.com,2009-10-18:Comment/163297142012-05-31T11:19:51Z2012-05-31T11:19:51ZSignals in Model classes - are Actors redundant? <div><p>There's also the SignalMap / SignalMediator classes, which will
give you automatic unmapping when your mediator is destroyed -
otherwise you need to override onRemove and make sure you're
removing those handlers so they don't linger around and cause
memory leaks and double-handler bugs.</p>
<p>hth,</p>
<p>Sx</p></div>Stray