Splash doesn't render.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Splash doesn't render.

Matias Maretto
Hi folks, I've got a little problem, I copied the behaviour of the
DolphinSplash class to make mi own splash. When I inspect: "MySplah
show" everything works fine, but when I use it in the initialization of
my application it doesn't render, only appears the initial state of the
image.
The code is something like this:

MySplah show
self open

The open message read the data from a file, I use the "Object
binaryReadFrom: aStream" I guess the problem is here, the file is about
5 MB. I think the binaryReadFrom doesn't let the Splash to refresh
itself.


Reply | Threaded
Open this post in threaded view
|

Re: Splash doesn't render.

Chris Uppal-3
Matias,

> The open message read the data from a file, I use the "Object
> binaryReadFrom: aStream" I guess the problem is here, the file is about
> 5 MB. I think the binaryReadFrom doesn't let the Splash to refresh
> itself.

You could try loading the data in a background Process.  Something like:

    [self loadDataSlowly.
    [self notifyLoadComplete] postToInputQueue]
        forkAt: Processor userBackgroundPriority

where #notfyLoadCompleted tells the app that the data is available, perhaps it
cancels the splash screen, etc...

    -- chris


Reply | Threaded
Open this post in threaded view
|

Re: Splash doesn't render.

Matias Maretto
Excellent. It's works!!.   Thanks a lot Chris.!.