diff options
| author | Jan Djärv | 2013-11-20 19:33:12 +0100 |
|---|---|---|
| committer | Jan Djärv | 2013-11-20 19:33:12 +0100 |
| commit | cab0d91dfb3a3f29a7208cfbc4fc2c5537e6aee4 (patch) | |
| tree | 24c1b436ca525f24e048290998940ba61bc8da6e /src | |
| parent | f03f7d3dc0ff04153e6d6b3c0bc8e16cb8225e95 (diff) | |
| download | emacs-cab0d91dfb3a3f29a7208cfbc4fc2c5537e6aee4.tar.gz emacs-cab0d91dfb3a3f29a7208cfbc4fc2c5537e6aee4.zip | |
* nsterm.m (init, run, stop:): Enable again. stop calls super stop
to handle dialogs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/nsterm.m | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2b22e09461f..e0ac7f298c7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2013-11-20 Jan Djärv <jan.h.d@swipnet.se> | 1 | 2013-11-20 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 2 | ||
| 3 | * nsterm.m (init, run, stop:): Enable again. stop calls super stop | ||
| 4 | to handle dialogs. | ||
| 5 | |||
| 3 | * nsterm.m (init, run, stop:): Comment out for now, does not work | 6 | * nsterm.m (init, run, stop:): Comment out for now, does not work |
| 4 | with dialogs. | 7 | with dialogs. |
| 5 | 8 | ||
diff --git a/src/nsterm.m b/src/nsterm.m index 991be1f0396..aa9f2af35d8 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -4367,7 +4367,6 @@ ns_term_shutdown (int sig) | |||
| 4367 | 4367 | ||
| 4368 | @implementation EmacsApp | 4368 | @implementation EmacsApp |
| 4369 | 4369 | ||
| 4370 | #if 0 | ||
| 4371 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 | 4370 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 |
| 4372 | - (id)init | 4371 | - (id)init |
| 4373 | { | 4372 | { |
| @@ -4386,7 +4385,7 @@ ns_term_shutdown (int sig) | |||
| 4386 | 4385 | ||
| 4387 | shouldKeepRunning = YES; | 4386 | shouldKeepRunning = YES; |
| 4388 | do | 4387 | do |
| 4389 | { | 4388 | { |
| 4390 | [pool release]; | 4389 | [pool release]; |
| 4391 | pool = [[NSAutoreleasePool alloc] init]; | 4390 | pool = [[NSAutoreleasePool alloc] init]; |
| 4392 | 4391 | ||
| @@ -4405,9 +4404,11 @@ ns_term_shutdown (int sig) | |||
| 4405 | - (void)stop: (id)sender | 4404 | - (void)stop: (id)sender |
| 4406 | { | 4405 | { |
| 4407 | shouldKeepRunning = NO; | 4406 | shouldKeepRunning = NO; |
| 4407 | // Stop possible dialog also. Noop if no dialog present. | ||
| 4408 | // The file dialog still leaks 7k - 10k on 10.9 though. | ||
| 4409 | [super stop:sender]; | ||
| 4408 | } | 4410 | } |
| 4409 | #endif | 4411 | #endif |
| 4410 | #endif | ||
| 4411 | 4412 | ||
| 4412 | - (void)logNotification: (NSNotification *)notification | 4413 | - (void)logNotification: (NSNotification *)notification |
| 4413 | { | 4414 | { |