From: Kevin W. <kw...@co...> - 2014-09-26 21:48:37
|
Michiel, On 9/26/14, 10:38 AM, Michiel de Hoon wrote: > Instead, in tkMacOSXNotify.c nextEventMatchingMask is overridden (which is an odd thing to do in itself) and now calls [NSApp tkProcessEvent:event], thereby processing the event in the event loop rather than in the callback. tkProcessEvent is just a wrapper for Cocoa event dispatch; it doesn't run any Tcl procedures. See tkMacOSXEvent.c. I suspect it's designed that way to put everything in one place. See http://core.tcl.tk/tk/tktview?name=3028676fff for discussion by Daniel Steffen of the notifier design. Given the data points I've outlined, I don't think that changing tkProcessEvent will have any useful effect, as it already conforms (as far as I can tell) to your prescription--no actual Tcl events or procedures are executed here. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com |