ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-mac
tcl-mac
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved