Ensure vim controllers are released in default run loop mode
commit31ddafa18b942f2e59a284d94839b5e5631089ab
authorBjorn Winckler <bjorn.winckler@gmail.com>
Fri, 20 Jun 2008 17:33:34 +0000 (20 19:33 +0200)
committerBjorn Winckler <bjorn.winckler@gmail.com>
Fri, 20 Jun 2008 17:50:45 +0000 (20 19:50 +0200)
treea408e3a80194928766823a4212c98f4087d4a923
parent1d29c9dbe6afc63550b7156d19622606073253d6
Ensure vim controllers are released in default run loop mode

Vim controllers are released when NSConnectionDidDieNotification is
received.  This notification can arrive in pretty much any run loop mode
so we take care not to act on it until the run loop mode is back to
default.  Otherwise we run the risk of releasing objects which Cocoa is
currently using (e.g. view items) and this leads to crashes.
src/MacVim/MMAppController.m
src/MacVim/MMVimController.m