summaryrefslogtreecommitdiff
path: root/delegateuitask_darwin.m
diff options
context:
space:
mode:
Diffstat (limited to 'delegateuitask_darwin.m')
-rw-r--r--delegateuitask_darwin.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/delegateuitask_darwin.m b/delegateuitask_darwin.m
index 84be5be..e30ebc2 100644
--- a/delegateuitask_darwin.m
+++ b/delegateuitask_darwin.m
@@ -92,9 +92,11 @@ extern NSRect dummyRect;
return NSTerminateNow;
}
-- (void)alertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)chan
+- (void)alertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)data
{
- dialog_send(chan, (uintptr_t) returnCode);
+ NSInteger *ret = (NSInteger *) data;
+
+ *ret = returnCode;
}
@end