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
This commit is contained in:
Bjorn Winckler
2007-07-29 10:25:33 +00:00
parent a1011f566a
commit e70a969683
+5
View File
@@ -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);