[Pharo-dev] How can I create a trivial "spinner" etc, to see if image is busy?

phil at highoctane.be phil at highoctane.be
Sun Feb 5 15:42:39 EST 2017


In the base image

Smalltalk allClasses
do:[:aClass| (Delay forMilliseconds: 1) wait]
displayingProgress:[:aClass| 'Processing ', aClass name].

Phil

On Sun, Feb 5, 2017 at 7:16 PM, Henrik Nergaard <draagren at outlook.com>
wrote:

> http://smalltalkhub.com/#!/~Latsabben/GafletFremgangFremviser
>
> ---------------------
> | ston file|
>
> ston := (1 to: 30) flatCollect: [:ix |STON toStringPretty: Smalltalk
> allClasses].
> file := (FileStream fileNamed: 'file.ston').
>
> ston whileDisplayingProgress
>         action: [ :stream | file nextPutAll: stream ] whenDone: [ file
> close ];
>         open;
>         fillOwner
> ---------------------
>
> Best regards,
> Henrik
>
> -----Opprinnelig melding-----
> Fra: Pharo-dev [mailto:pharo-dev-bounces at lists.pharo.org] På vegne av
> Yuriy Tymchuk
> Sendt: 05 February 2017 16:56
> Til: Pharo Development List <pharo-dev at lists.pharo.org>
> Emne: [Pharo-dev] How can I create a trivial "spinner" etc, to see if
> image is busy?
>
> Hi all,
>
> is there an easy was to do some thing that is constantly changing? so if
> my image freezes (to export a 1gb ston file for example) I can see when
> it’s done.    Or maybe there is a way to send a mac notification from Pharo?
>
> Cheers.
> Uko
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20170205/ae262109/attachment.html>


More information about the Pharo-dev mailing list