class library: deprecate UI.registerForShutdown

UI.registerForShutdown has the same semantics as ShutDown.add. we only
need one functionality like this, so this patch deprecates it.

Signed-off-by: Tim Blechmann <tim@klingt.org>
This commit is contained in:
Tim Blechmann 2011-12-07 00:27:34 +01:00
parent 3e5cf00140
commit 08cbc64f3a

View file

@ -250,12 +250,12 @@ Emacs {
thisProcess.platform.declareFeature( \emacs );
outStream = CollStream.on(String.new);
outFile = File(outFileName, "w");
UI.registerForShutdown({
ShutDown.add {
if (outFile.notNil) {
outFile.close;
outFile = nil
};
});
};
// initialize servers
newServer = { | server update |
SimpleController(server)