Programmatically deleting windows - Project in particular
Tim Rowledge
tim at sumeru.stanford.edu
Thu Jul 27 00:33:03 UTC 2000
No, this isn't about removing M$ project planning tools from my machine.
Happily, there are NO M$ products in my office...
BUT I want to be able to remove Projects and their views programatically
as part of a script to shrink the image. So far I'm not having much
luck.
I started by looking into SystemDictionary>zapMVCProjects and noticed
the Project>oktoChange method. The latter does a whole load more than
the former, lots of ImageSegment stuff etc. It also uses Confirmers and
Menus which I want to avoid.
By making the later part of okToChange into a separate method (and
sending the new message in okToChange - gotta keep this clean!) I
thought I might at least have a chance of success, however despite the
fact that the method sends the ProjectViewMorp #deletingProject: which
claims to delete the morph, and then also sends #abandon which seems
intended to do the same thing, the window resolutely stays there.
It seems that zapMVCProjects and oktoChange have got out of step a
little ? Have I misunderstood completely?
I should probably add that I am trying this from a morphic project,
attemtping to delete a newly created project - both mvc & morphic have
the same behavior so far.
In general, is there intended to be a way to programatically close
windows without requiring further user interaction? So far it looks as
if all the related methods are pretty UI intermingled, which is a pity.
tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Useful random insult:- Not as dumb as he looks, but that would be impossible.
More information about the Squeak-dev
mailing list
|