«« Include Directory and Threading Seeing the Forest for the Tests »»
blog header image
Asynchronous View Update with setInput() Works Well

I have changed around AudioMan so that it does was I blogged about yesterday: it fills the models in a new thread and then uses setInput() to attach the new model into the view. The old way was just adding and removing items from the same model, which took a long time for the UI to update.

The switch between All Artists and a specific artist is almost instantaneous. I've also changed the way include directory adds new songs. They will appear in the view as the crawling function finds them.

If you want to check it out download the latest developer build. The code is in there too if you want to see the implementation. Just keep in mind that it's covered by the GPL.

Posted at February 19, 2004 at 04:24 AM EST
Last updated February 19, 2004 at 04:24 AM EST
Comments
Google
 
Search scope: Web ryanlowe.ca