# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1301597452 0 # Node ID d44bb4c4902d431fea8689446779cd22e5e2163c # Parent c27ce204302b2aa463471c21ddb70f565b0d1b66 Fixed an error on the close event handler on the Mac. diff -r c27ce204302b -r d44bb4c4902d mac/dw.m --- a/mac/dw.m Thu Mar 31 18:10:41 2011 +0000 +++ b/mac/dw.m Thu Mar 31 18:50:52 2011 +0000 @@ -470,9 +470,6 @@ /* Subclass for a box type */ @interface DWBox : NSView -#ifdef BUILDING_FOR_SNOW_LEOPARD - -#endif { Box *box; void *userdata; @@ -572,6 +569,9 @@ /* Subclass for a top-level window */ @interface DWView : DWBox +#ifdef BUILDING_FOR_SNOW_LEOPARD + +#endif { NSMenu *windowmenu; } @@ -585,9 +585,9 @@ @implementation DWView -(BOOL)windowShouldClose:(id)sender { - if(_event_handler(self, nil, 6) == FALSE) - return NO; - return YES; + if(_event_handler(sender, nil, 6) == FALSE) + return YES; + return NO; } - (void)viewDidMoveToWindow {