Permalink
Browse files

Fix compilation problems on Tiger

The NSRunLoopCommonModes constant is not defined in the Tiger API so
explicitly enumerate the necessary modes instead.
  • Loading branch information...
1 parent e70fb38 commit 2e8bea32db81ab465cd981c8a7a6aec503c953bc @b4winckler b4winckler committed Apr 13, 2009
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/MacVim/MMAppController.m
@@ -1160,13 +1160,14 @@ - (oneway void)processInput:(in bycopy NSArray *)queue
[inputQueues setObject:queue forKey:key];
}
- // NOTE: We must use "common modes" instead of "default mode", otherwise
- // the input queue will not be processed e.g. during live resizing ("event
- // tracking mode").
+ // NOTE: We must use "event tracking mode" as well as "default mode",
+ // otherwise the input queue will not be processed e.g. during live
+ // resizing.
[self performSelector:@selector(processInputQueues:)
withObject:nil
afterDelay:0
- inModes:[NSArray arrayWithObject:NSRunLoopCommonModes]];
+ inModes:[NSArray arrayWithObjects:NSDefaultRunLoopMode,
+ NSEventTrackingRunLoopMode, nil]];
}
- (NSArray *)serverList
@@ -2184,7 +2185,8 @@ - (void)processInputQueues:(id)sender
[self performSelector:@selector(processInputQueues:)
withObject:nil
afterDelay:0
- inModes:[NSArray arrayWithObject:NSRunLoopCommonModes]];
+ inModes:[NSArray arrayWithObjects:NSDefaultRunLoopMode,
+ NSEventTrackingRunLoopMode, nil]];
processingFlag = 0;
}

0 comments on commit 2e8bea3

Please sign in to comment.