On Jan 7, 2010, at 12:49 57PM, Gary Chambers wrote:
I think the annnouncements should be sent by the World (being, effectively, the window manager). Too many ways to open open a window exist and only the fact of being added to the World seems consistent. I suggest opened, closed, activated (becoming topmost-ish), deactivated, expanded, collapsed, restored and maybe repositioned/resized would be useful.
Regards, Gary I thought the same, thus my first thought was doing it in PasteupMorph>> addMorph:.
Now I think it's a bad idea, because: - Not all PasteUpMorphs are necessarily Worlds. - Not all morphs added to Worlds are windows. If putting it in a SystemWindow method means having to refactor some methods so all ways of opening a window passes through that method, I don't really see that as a bad thing. As far as I can tell though, all open... methods for SystemWindow + subclasses already pass through #openAsIsIn: Cheers, Henry