Re: [AD] OSX and set_close_button_callback |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
On 7/12/07, Matthew Leverton <meffer@xxxxxxxxxx> wrote:
It used to work. The most recent revision to main.m broke it. Attached is a patch that fixes it. Disclaimer: I know nothing about Cocoa or OS X development, so it may or may not be correct.
Attached is an alternative patch that just lets Cocoa automatically decide which object to send the terminate message. This one might be more correct, but perhaps the real solution is to call setTarget on whatever really is expecting it? Or maybe some other method needs to be added to the app_delegate in order for it to respond to the terminate. Surely any programmer versed in Cocoa knows the best way to fix it. -- Matthew Leverton
Attachment:
main.m.diff
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |