Hi Sean,
> Le 17 juin 2018 à 20:20, Sean P. DeNigris <
[hidden email]> a écrit :
>
> What is the SessionManager equivalent to `Smalltalk addToStartupList: self
> after: AnotherClass`?
> To do it manually, I don't see an easy way to query the priority/category of
> AnotherClass(edited)
SessionManager was designed to avoid dependencies between classes / packages that have nothing in common.
The best way is to find the best category to register your class in but in some cases, it s not enough.
ex: you rely on a class registered in user category but you need that another class startup happens after.
In this case, you need to use priorities. You can check dependent class category by inspection the session category but, indeed, there is no way to query the priority/category of a registered handler. It was not needed until now.
Do you need to compute the priority dynamically? What is the use case?
> Also, it seems that "higher" priority in SessionManager means a lower
> number! This seems opposite of both logic and precedent (see Process), no?
You’re right. It simplifies sorting but indeed is counter-intuitive.
Changing that now will probably break things for people relying on the current behavior.
Cheers,
Christophe