diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-03-21 01:22:36 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-03-21 01:22:36 (GMT) |
commit | 36789948c1ca0009ef6e21c1a4a5d5104a182e20 (patch) | |
tree | cfe7b72ffd9516cdb7e947296d26fe12222f6eb2 /macosx/tkMacOSXWm.c | |
parent | b51542669f8082f05ab49118e0dfc629ea52823e (diff) | |
download | tk-36789948c1ca0009ef6e21c1a4a5d5104a182e20.zip tk-36789948c1ca0009ef6e21c1a4a5d5104a182e20.tar.gz tk-36789948c1ca0009ef6e21c1a4a5d5104a182e20.tar.bz2 |
Cleanup and simplification of memory management in event loop; now works more smoothly; thanks to Marc Culler for patches
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r-- | macosx/tkMacOSXWm.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index a852ac9..8459bdd 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -22,6 +22,8 @@ #include "tkMacOSXDebug.h" #include <Carbon/Carbon.h> +#define DEBUG_ZOMBIES 0 + /* #ifdef TK_MAC_DEBUG #define TK_MAC_DEBUG_WINDOWS @@ -338,6 +340,17 @@ static void RemapWindows(TkWindow *winPtr, { id _i1, _i2; } + +- (id) retain +{ +#if DEBUG_ZOMBIES + const char *title = [[self title] UTF8String]; + if (title != NULL) { + printf("Retaining %s with count %lu\n", title, [self retainCount]); + } +#endif + return [super retain]; +} @end @implementation TKWindow @@ -785,7 +798,6 @@ TkWmDeadWindow( if (parent) { [parent removeChildWindow:window]; } - [window setExcludedFromWindowsMenu:YES]; [window close]; TkMacOSXUnregisterMacWindow(window); if (winPtr->window) { |