In Object method category *Morphic-Kernel, we currently have three methods:
Object>>currentEvent "Answer the current Morphic event. This method never returns nil."
Object>>currentHand "Return a usable HandMorph -- the one associated with the object's current environment."
Object>>currentWorld "Answer a morphic world that is the current UI focus."
I want to suggest adding one more method:
Object>>currentProjectWorld "Answer a morphic world for the current project." ^Project current world
Rationale: In the course of removing direct references to the global variable World, there are now numerous repetitions of the "Project current world" idiom. If these are replaced by "self currentProjectWorld", the code is a bit more readable, and the references to Project current world are easier to find. This should also make the distinction between #currentWorld and #currentProjectWorld easier to understand.
Is it OK if I add this method, and replace the current "Project current world" usage with "self currentProjectWorld" throughout?
Dave