<div class="gmail_quote"><br><br>thanks, I just also found this...<div>but anyway, I realised the root menu is really only usefull in OSX... won't rely on it...<div><div></div><div class="h5"><br><br><div class="gmail_quote">
2011/11/21 Matthew Flatt <span dir="ltr"><<a href="mailto:mflatt@cs.utah.edu" target="_blank">mflatt@cs.utah.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You need to install a quit handler via `application-quit-handler'.<br>
The quit handler is invoked by the "Quit" menu item.<br>
<div><div></div><div><br>
At Mon, 21 Nov 2011 15:08:37 -0500, Louis-Philippe wrote:<br>
> right now, having<br>
> (yield (make-semaphore))<br>
> at the end of my program, the application doesn't exit and my root menu-bar<br>
> stays... but the quit menu doesn't work anymore... should I override it,<br>
> but with what, or am I missing something?<br>
><br>
> thanks!<br>
><br>
> 2011/11/21 Matthew Flatt <<a href="mailto:mflatt@cs.utah.edu" target="_blank">mflatt@cs.utah.edu</a>><br>
><br>
> > At Mon, 21 Nov 2011 13:40:06 -0500, Louis-Philippe wrote:<br>
> > > I looked around the docs for racket/gui and I can't find how to do<br>
> > > something very basic... how can I leave a racket/gui app opened after<br>
> > all<br>
> > > windows have closed so that the root menu-bar can stay visible?<br>
> ><br>
> > You'll need to add a call to `yield' to the end of your program to wait<br>
> > until your application quit handler exits. For example, you might add<br>
> ><br>
> > (yield (make-semaphore))<br>
> ><br>
> > assuming that your quit handler exits via `exit', or you could use<br>
> ><br>
> > (define s (make-semaphore))<br>
> > (yield s)<br>
> ><br>
> > with a quit handler that exits via `(semaphore-post s)'.<br>
> ><br>
> ><br>
</div></div></blockquote></div><br></div></div></div>
</div><br>