Mercurial > dwindows
changeset 854:d44bb4c4902d
Fixed an error on the close event handler on the Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 31 Mar 2011 18:50:52 +0000 |
parents | c27ce204302b |
children | 0103a8751ab4 |
files | mac/dw.m |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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 -<NSWindowDelegate> -#endif { Box *box; void *userdata; @@ -572,6 +569,9 @@ /* Subclass for a top-level window */ @interface DWView : DWBox +#ifdef BUILDING_FOR_SNOW_LEOPARD +<NSWindowDelegate> +#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 {