From b172ab2e37896d36292660f6cc15987fb88ddf57 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 8 Jun 2014 12:36:55 -0400 Subject: Added new MsgBox() behavior on Mac OS X. Now we can finally remove MsgBox() from the TODOs! :D --- delegateuitask_darwin.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'delegateuitask_darwin.m') diff --git a/delegateuitask_darwin.m b/delegateuitask_darwin.m index d2e6f4f..6cf886d 100644 --- a/delegateuitask_darwin.m +++ b/delegateuitask_darwin.m @@ -108,8 +108,9 @@ extern NSRect dummyRect; return NSTerminateCancel; } -- (void)alertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo +- (void)alertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)chan { + dialog_send(chan, (uintptr_t) returnCode); } @end -- cgit v1.2.3