On Tuesday 29 Apr 2008, gerhard.schlager wrote:
1) How can I make sure that unused data gets removed from the Model
Locator?
Why do you need to do so ?
--
Tom Chiverton
Helping to vitalistically negotiate B2C content
on: http://thefalken.livejournal.com
Gerhard,
One approach I took is to have localized models that apply to specific
modules in the application, as opposed to having a proliferation of
variables that apply across multiple aspects of the application, which
could get ugly. They still could live in the singleton Model Locator,
but
You definitely don't want your model keeping track of views using its data.
My 30 second recommendation would be to look into the UM Cairngorm
extensions as they can help you reduce the amount of clutter that needs to
be stored on the/a model. Specifically view callbacks is the feature that
helps
3 matches
Mail list logo