Skip to content

Commit

Permalink
Fix compilation problems on Tiger
Browse files Browse the repository at this point in the history
The NSRunLoopCommonModes constant is not defined in the Tiger API so
explicitly enumerate the necessary modes instead.
  • Loading branch information
b4winckler committed Apr 13, 2009
1 parent e70fb38 commit 2e8bea3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/MacVim/MMAppController.m
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 2e8bea3

Please sign in to comment.