If your application loads images from disk for display, you may have
noticed
that the first image takes longer to load than the second image. This
can be
a problem if the user clicks a button or takes some other action to
cause
the picture to load. The reason for the initial delay is that QuickTime
must
be initialized. While there isn't much you can do to make QuickTime
initialize faster, you can improve the behavior of your application.
If you place a MoviePlayer control on the window that is displayed when
your
application opens, QuickTime will be initialized. The MoviePlayer
control
doesn't need to be displaying a movie, it just needs to be present. This
will cause the delay to occur when your application launches rather
than the
first time the user displays a picture.
If your application is only displaying the image, don't forget that you
can
use the MoviePlayer to display the image by using the OpenAsMovie
method of
the folderitem class.
--
Geoff Perlman
President & CEO
REAL Software, Inc.
http://www.realsoftware.com
mailto:geoff at realsoftware dot com
Phone: 512-263-1233 x711
Fax: 512-263-1441
- - - - - - - - - -
Got a useful tip to share? Send it to us at:
REALbasic-tips at lists dot realsoftware dot com dot
For list commands, send "Help" in the body of a message to
<requests at lists dot realsoftware dot com>
|