Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

URL download time



I have a widget that downloads an image and then displays it. I get the image by simply setting an Image source to the URL (myImage.src = URLStr;). I wait a few seconds and then display the image as: context.drawImage(myImage, 10, 10 );

This works fine. The problem is that I don't know how long it takes to download the image. If I don't wait enough seconds before I draw it I get zip. Is there any "simple" way to know when the image download is complete? Thanks.

Darryl
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.