Re: [MACTCL] catching quit from Wish menu
by Jeff Hobbs other posts by this author
Feb 27 2007 1:51PM messages near this date
Re: [MACTCL] catching quit from Wish menu
|
Re: [MACTCL] catching quit from Wish menu
Jon Guyer wrote:
> On Feb 27, 2007, at 3:40 PM, Robert Karen wrote:
> > I'm using tcltkaqui BI and want to catch the Quit from the Wish menu.
> > Could someone tell me the tclAE commands to do this, or a simpler way,
> > if there is one (besides renaming 'exit'). Thanks!
>
> % package require tclAE
> 2.0
> % tclAE::installEventHandler aevt quit handleQuitApplication
> % proc handleQuitApplication {theAppleEvent theReplyAE} {
> ...
> }
Do these actually work with the latest Tcl that has the ::tk::mac::* event
handlers? I've been having troubles with getting Tk apps to receive any
command line arguments. The problem is that the OpenDocument handler
specifically operates by only allowing file references through. This means if
you pass something like:
myapp --switch /path/to/file
you don't see --switch, just the filename (and only if it is a real file).
Trying to use tclAE to override the built-in AE event handlers in Tk has not
worked for me.
Jeff Hobbs, The Tcl Guy, http://www.ActiveState.com/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-mac mailing list
tcl-mac@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-mac
Thread:
Alastair Davies
Philip Aker
Robert Karen
Jon Guyer
Jeff Hobbs
Jon Guyer
Jeff Hobbs
David Zolli
Jon Guyer
Tim Jones
Jon Guyer
David Zolli
Jon Guyer
Jon Guyer
Jeff Hobbs
Robert Karen
Kevan Hashemi
David Zolli
Kevin Walzer
Jeff Hobbs
Robert Karen
Jon Guyer
Robert Karen
Kevin Walzer
Jon Guyer
Robert Karen
Robert Karen
Tim Jones
Robert Karen
Jon Guyer
Kevin Walzer
Jim Ingham
Jasper Taylor
Clarke
|