Thank you Alex for the reply and the suggestions. I especially like the idea of<div>defining it in a way that could be modal or not depending on the supply or not</div><div>of a Responder-Function argument. Work for another day :-)</div><div><br></div><div>The warning did not look like a warning about the 'running' variable.</div><div>I thought lexical scoping would cover its use in the objc:defmethod body.</div><div>I gather I was wrong about that. Still, the warning message is an odd one,</div><div>since it names the objc method and not the offending variable.</div><div><br></div><div>btw the reason for 'running' was that in earlier tests it appeared to me that</div><div>#/runModalForWindow: was returning whilst leaving the panel on-screen.</div><div>I concluded, obviously wrongly, that #/runModalForWindow modified</div><div>event-handling behaviour and returned control, and that #/stopModal</div><div>reverted event-handling behaviour. I was surprised, but credulous.</div><div>But anyway 'running' does now seem dispensible.</div><div>Sigh: I have so much to learn ...</div><div><br></div><div>Thanks again.</div><div><br></div><div><snip></div><div><br></div><div><span></span></div>