right now, having<div>(yield (make-semaphore))</div><div>at the end of my program, the application doesn't exit and my root menu-bar stays... but the quit menu doesn't work anymore... should I override it, but with what, or am I missing something?</div>
<div><br></div><div>thanks!<br><div><br><div class="gmail_quote">2011/11/21 Matthew Flatt <span dir="ltr"><<a href="mailto:mflatt@cs.utah.edu">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;">
<div class="im">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 all<br>
> windows have closed so that the root menu-bar can stay visible?<br>
<br>
</div>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>
</blockquote></div><br></div></div>