diff options
author | Marius Kintel <marius@kintel.net> | 2013-02-07 20:01:31 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-02-07 20:01:31 (GMT) |
commit | 4bd23c90916c181fe8ef4788ebe8d3d916758a0a (patch) | |
tree | f962b902d8de3aee65c9887736741682b8be878b /src/CocoaUtils.mm | |
parent | a7b80d64dd5775ff10253eb1a8b17cf4c2aeaeeb (diff) |
Support Sparkle's Install on Quit
Diffstat (limited to 'src/CocoaUtils.mm')
-rw-r--r-- | src/CocoaUtils.mm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/CocoaUtils.mm b/src/CocoaUtils.mm new file mode 100644 index 0000000..2ac8aef --- /dev/null +++ b/src/CocoaUtils.mm @@ -0,0 +1,9 @@ +#include "CocoaUtils.h" +#import <Foundation/Foundation.h> + +void CocoaUtils::endApplication() +{ + [[NSNotificationCenter defaultCenter] + postNotificationName:@"NSApplicationWillTerminateNotification" + object:nil]; +} |