From: Jasper T. <ja...@si...> - 2009-12-18 18:01:53
|
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 |