Re: [Swingosc-devel] window.isClosed at swingosc quit
Brought to you by:
sciss
From: Sciss <co...@sc...> - 2009-04-03 18:21:45
|
hi, looking into this, it was already there...... in JSCWindow.prInit: updServer = UpdateListener.newFor( server, { arg upd, s; if( s.serverRunning.not, { this.close }); }, \serverRunning ); i can't remember when it was added, but can you check the following works for you: g.boot; w = JSCWindow.new.front.onClose_({ "Closed!".postln }); g.quit; // --> prints! if it prints, i think we don't need to change anything. ciao, -sciss- Am 03.04.2009 um 18:15 schrieb nescivi: > Hiho, > > On Monday 23 March 2009 10:43:17 Sc iss wrote: >> UpdateListener.newFor( g, { arg upd, swing; if >> ( swing.serverRunning.not, { >> upd.remove; JSCWindow.allWindows.select( _.server == swing ).do >> ( _.close >> )})}, \serverRunning ); > > > I think it would be useful to have this as a default. > > > sincerely, > Marije > > ---------------------------------------------------------------------- > -------- > _______________________________________________ > Swingosc-devel mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swingosc-devel |