From: Daniel A. S. <da...@us...> - 2007-11-08 14:52:06
|
On 08/11/2007, at 18:00, Jeff Hobbs wrote: > Daniel has developed the right fix for the menu stuff which will > soon be > integrated. It needs to be special cased for Leopard, and it also > corrects the file dialogs issue. All good, coming soon to a Tk/Aqua > codebase near you. fix committed to HEAD: * macosx/tkMacOSXCarbonEvents.c (InstallStandardApplicationEventHandler): on Mac OS X Leopard, replace the 2005-11-27 approach of installing the standard application handler by calling RAEL and immediately longjmping out of it from an event handler, as that now leads to crashes in -[NSView unlockFocus] whenever HIToolbox uses Cocoa in Leopard (Help menu, Nav Services, Color Picker). Instead call InstallStandardEventHandler() on the application and menubar event targets, as Leopard ISEH finally handles these correctly. Unfortunately need a HIToolbox-internal SPI to retrieve the menubar event target, no public API appears have that functionality. I will further investigate if it is possible to use public API to replace the GetMenuBarEventTarget() SPI, as this is acquired via TkMacOSXGetNamedDebugSymbol(), and may not available in future versions of HIToolbox. backport to core-8-4-branch forthcoming... Cheers, Daniel -- ** Daniel A. Steffen ** ** <mailto:da...@us...> ** |