From: Youness A. <kak...@ka...> - 2009-12-18 20:40:19
|
Hi, Tk already supports telling you when your dock is being clicked.. just define a proc with : proc ::tk::mac::ReopenApplication { } { # your dock was clicked! do something! } Hope that helps. KaKaRoTo On Fri, Dec 18, 2009 at 12:48 PM, Jasper Taylor <ja...@si...>wrote: > Hi Folks, > Being unused to the Mac way of doing things, I often close the last > window in my app by clicking its 'close' decoration (red X button at the > top left). This closes the window but does not quit the application. > After a while I may try to launch it again by clicking the app icon. At > this point, nothing happens, causing consternation until I remember that > I am on the Mac and actually something has happened -- my app's menu is > now at the top of the screen. I can then open a new window from the menu. > > However the normal Mac app behaviour, as far as I can tell, is to open a > new window when the app launch action is done, if it is already running. > It seems the way to get this to happen is to use tclAE and install an > event handler, but so far I have not succeeded in getting a procedure > called by registering it with tclAE::installEventHandler. Can anyone > give me a clue that might help? > Cheers > --Jasper > > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Tcl-mac mailing list > tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > |