summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXPrivate.h
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2017-10-11 00:44:12 (GMT)
committerKevin Walzer <kw@codebykevin.com>2017-10-11 00:44:12 (GMT)
commit0e8376bacdeb2bfe083cb4836c52c1c95a16a105 (patch)
tree6280bfab8db4927611c8142d2b688c7c39eae1a9 /macosx/tkMacOSXPrivate.h
parentec1a48e95670f0cfd0b32e37a1e01be9931d334f (diff)
downloadtk-0e8376bacdeb2bfe083cb4836c52c1c95a16a105.zip
tk-0e8376bacdeb2bfe083cb4836c52c1c95a16a105.tar.gz
tk-0e8376bacdeb2bfe083cb4836c52c1c95a16a105.tar.bz2
Numerous fixes for Tk on macOS 10.13; eliminate memory leaks, override system fullscreen API that confuses window geometry, improve implementation of Tk fullscreen API. Thanks to Marc Culler for patches to address memory leaks.
Diffstat (limited to 'macosx/tkMacOSXPrivate.h')
-rw-r--r--macosx/tkMacOSXPrivate.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/macosx/tkMacOSXPrivate.h b/macosx/tkMacOSXPrivate.h
index 65d60ce..6248c5a 100644
--- a/macosx/tkMacOSXPrivate.h
+++ b/macosx/tkMacOSXPrivate.h
@@ -278,14 +278,17 @@ VISIBILITY_HIDDEN
NSAutoreleasePool *_mainPool;
#ifdef __i386__
/* The Objective C runtime used on i386 requires this. */
- BOOL _poolProtected;
+ int _poolLock;
#endif
}
-@property BOOL poolProtected;
+@property BOOL poolLock;
+
@end
@interface TKApplication(TKInit)
- (NSString *)tkFrameworkImagePath:(NSString*)image;
- (void)_resetAutoreleasePool;
+- (void)_lockAutoreleasePool;
+- (void)_unlockAutoreleasePool;
@end
@interface TKApplication(TKEvent)
- (NSEvent *)tkProcessEvent:(NSEvent *)theEvent;