I've fixed my own issue. If anyone has a problem with snippets merging, combining, blocking each other out, or just plain redrawing wrong, check your messagecenter listeners. I was using such a listener to identify when data had been loaded and display it on the snippet. However, unlike the typical sidebar views, snippets that scroll "offscreen" do not hide/unload. Because of this, their listeners are also activated when the data comes in and all data is writtren to the active snippet. What I did was keep an array of all generated snippets at the root level and then use a simple function to kill any listeners. Here is that function:
function clearSnippetListeners(){
for(nona=0; nona<createdSnippets.length; nona++)
createdSnippets[nona]._unregisterMessageCenterListeners();
}
I then reorganized some of the snippet-level code. It now works in the simulator and on the television. Someone need to tell Accuweather because their snippets exhibit the same overwriting behavior mine were.
QUOTE
(buddy @ 13 Sep 2011 2:23 PM)I have a weather app with scrollable snippets. The data for these snippets is assembled at launch and the snippet itself displays live weather data. In the simulator, everything works fine: The snippet draws correctly everytime. However, on the television (Samsung), only the first draw appears correctly. Every snippet scrolled to after that shows every previous snippet's data underneath the new data for the now current snippett. I have tried a variety of methods for creating the snippet without success. I am hoping someone here can point me in the right direction.
********** CODE CODE CODE CODE CODE CODE **********
Can someone give me a shove in the right direction?