commit - a2f6b810f5be2a233fc58762ccc009a15edabf8b
commit + cbcec5adb9cb2274f3c4e2f3a8f4926b2e9689e8
blob - 6f3b431228ab10958905f01265462a1f0d4f9ef2
blob + 01356726eacc77296cfff9497d21c699c8091e64
--- src/cmd/devdraw/osx-screen-carbon.m
+++ src/cmd/devdraw/osx-screen-carbon.m
exit(0);
case kEventWindowBoundsChanged:
- eresized(1);
+ eresized(0);
break;
case kEventWindowDrawContent:
blob - 722378eeb72b9466c72a47ab9b602cf86cf0b022
blob + b7828af2b7f3b31232514bbd00a88f863f2b933a
--- src/cmd/devdraw/osx-srv.m
+++ src/cmd/devdraw/osx-srv.m
{
NSAutoreleasePool *pool = nil;
NSApplication *application = nil;
-
+ DevdrawDelegate *app = nil;
/*
* Move the protocol off stdin/stdout so that
* any inadvertent prints don't screw things up.
pool = [[NSAutoreleasePool alloc] init];
application = [NSApplication sharedApplication];
- [application setDelegate:[[DevdrawDelegate alloc] init]];
+ app = [[DevdrawDelegate alloc] init];
+ [application setDelegate:app];
[application run];
[application setDelegate:nil];
+ [app release];
[pool release];
return 0;
}