From e70a969683aae29ff359d46860af954d97b8c50f Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Sun, 29 Jul 2007 10:25:33 +0000 Subject: [PATCH] Added connection to event tracking mode so that live resize works for DO. git-svn-id: http://macvim.googlecode.com/svn/trunk@25 96c4425d-ca35-0410-94e5-3396d5c13a8f --- MMAppController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MMAppController.m b/MMAppController.m index 83bfe49afb..43ec804862 100644 --- a/MMAppController.m +++ b/MMAppController.m @@ -29,6 +29,11 @@ //NSLog(@"Registering connection with name '%@'", name); if ([connection registerName:name]) { [connection setRootObject:self]; + + // NOTE: When the user is resizing the window the AppKit puts the + // run loop in event tracking mode. Unless the connection listens + // to request in this mode, live resizing won't work. + [connection addRequestMode:NSEventTrackingRunLoopMode]; } else { NSLog(@"WARNING: Failed to register connection with name '%@'", name);