#inform: Changed in 5.0?

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

#inform: Changed in 5.0?

Sean P. DeNigris
Administrator
During startup, I do `UIManager default inform: aString`. It used to show a Growl morph, but now opens a debugger. Did something change? If so, why and how do I circumvent the debugger? Thanks.
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: #inform: Changed in 5.0?

stepharo
Hi sean


which startup?


Stef


Le 17/6/16 à 17:10, Sean P. DeNigris a écrit :

> During startup, I do `UIManager default inform: aString`. It used to show a
> Growl morph, but now opens a debugger. Did something change? If so, why and
> how do I circumvent the debugger? Thanks.
>
>
>
> -----
> Cheers,
> Sean
> --
> View this message in context: http://forum.world.st/inform-Changed-in-5-0-tp4901478.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: #inform: Changed in 5.0?

Denis Kudriashov
In reply to this post by Sean P. DeNigris
Hi

2016-06-17 17:10 GMT+02:00 Sean P. DeNigris <[hidden email]>:
During startup, I do `UIManager default inform: aString`. It used to show a
Growl morph,

Do you perform it inside #defer: message?
Reply | Threaded
Open this post in threaded view
|

Re: #inform: Changed in 5.0?

Sean P. DeNigris
Administrator
Denis Kudriashov wrote
Do you perform it inside #defer: message?
I didn't and it was working in 4.0, but wrapping in #defer: it now works again in 5.0
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: #inform: Changed in 5.0?

Denis Kudriashov
In 5.0 there was refactoring of startup process which introduce some kind of StartUpUIManager (not remember exact name). It is installed when image just started. And concrete manager like MorphicUIManager is installed at some last step. (somebody could explain it better) 

2016-06-19 18:46 GMT+02:00 Sean P. DeNigris <[hidden email]>:
Denis Kudriashov wrote
> Do you perform it inside #defer: message?

I didn't and it was working in 4.0, but wrapping in #defer: it now works
again in 5.0



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/inform-Changed-in-5-0-tp4901478p4901815.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|

Re: #inform: Changed in 5.0?

demarey
In reply to this post by Sean P. DeNigris
Hi Sean,

> Le 17 juin 2016 à 17:10, Sean P. DeNigris <[hidden email]> a écrit :
>
> During startup, I do `UIManager default inform: aString`. It used to show a
> Growl morph, but now opens a debugger. Did something change? If so, why and
> how do I circumvent the debugger? Thanks.

With the introduction of the session manager, error handling during startup actions was revisited.
You can check StartupUIManager>>#handleError:log: for errors coming before Morphic is initialized.
Once Morphic is initialized, you get a default UI manager (MorphicUIManager if in UI mode). It is managed by UIManagerSessionHandler class.

If your startup code is executed with StartupUIManager, it will add a deferred startup action to execute the inform, else it fallback to MorphicUIManager inform.
It should do the behavior you expect.

Could you give me more info (the stacktrace would be useful)?

Cheers,
Christophe