2013-11-20 Jan Djärv <jan.h.d@swipnet.se>
+ * nsterm.m (init, run, stop:): Enable again. stop calls super stop
+ to handle dialogs.
+
* nsterm.m (init, run, stop:): Comment out for now, does not work
with dialogs.
@implementation EmacsApp
-#if 0
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9
- (id)init
{
shouldKeepRunning = YES;
do
- {
+ {
[pool release];
pool = [[NSAutoreleasePool alloc] init];
- (void)stop: (id)sender
{
shouldKeepRunning = NO;
+ // Stop possible dialog also. Noop if no dialog present.
+ // The file dialog still leaks 7k - 10k on 10.9 though.
+ [super stop:sender];
}
#endif
-#endif
- (void)logNotification: (NSNotification *)notification
{