summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXNotify.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-03-21 00:50:16 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-03-21 00:50:16 (GMT)
commit69975174e85eb27b9568bac02cb3a09ce10f0812 (patch)
tree523d52d04168fdbaa26d257a98579ba2a5e37713 /macosx/tkMacOSXNotify.c
parentb44d7749aae46224ac68d100431e89b7ea666bee (diff)
downloadtk-69975174e85eb27b9568bac02cb3a09ce10f0812.zip
tk-69975174e85eb27b9568bac02cb3a09ce10f0812.tar.gz
tk-69975174e85eb27b9568bac02cb3a09ce10f0812.tar.bz2
Remove garbage collections calls as GC is no longer supported on OS X; thanks to Marc Culler for patch
Diffstat (limited to 'macosx/tkMacOSXNotify.c')
-rw-r--r--macosx/tkMacOSXNotify.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/macosx/tkMacOSXNotify.c b/macosx/tkMacOSXNotify.c
index b400423..d35427a 100644
--- a/macosx/tkMacOSXNotify.c
+++ b/macosx/tkMacOSXNotify.c
@@ -223,8 +223,7 @@ TkMacOSXEventsSetupProc(
inMode:GetRunLoopMode(TkMacOSXGetModalSession())
dequeue:YES];
if (currentEvent) {
- tsdPtr->currentEvent =
- TkMacOSXMakeUncollectableAndRetain(currentEvent);
+ tsdPtr->currentEvent = [currentEvent retain];
}
}
if (tsdPtr->currentEvent) {
@@ -262,8 +261,8 @@ TkMacOSXEventsCheckProc(
TSD_INIT();
if (tsdPtr->currentEvent) {
- currentEvent = TkMacOSXMakeCollectableAndAutorelease(
- tsdPtr->currentEvent);
+ currentEvent = tsdPtr->currentEvent;
+ [currentEvent autorelease];
}
do {
modalSession = TkMacOSXGetModalSession();
@@ -277,9 +276,6 @@ TkMacOSXEventsCheckProc(
}
[currentEvent retain];
pool = [NSAutoreleasePool new];
- if (tkMacOSXGCEnabled) {
- objc_clear_stack(0);
- }
if (![NSApp tkProcessEvent:currentEvent]) {
[currentEvent release];
currentEvent = nil;