Mercurial > dwindows
comparison mac/dw.m @ 1934:487fd711bf3f
Mac: Fix deprecation warning in the 10.13 SDK.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 18 Oct 2017 17:26:39 +0000 |
parents | 0448507827e6 |
children | 994e2360dbb2 |
comparison
equal
deleted
inserted
replaced
1933:758f49e54566 | 1934:487fd711bf3f |
---|---|
3681 } | 3681 } |
3682 | 3682 |
3683 /* Display the dialog. If the OK button was pressed, | 3683 /* Display the dialog. If the OK button was pressed, |
3684 * process the files. | 3684 * process the files. |
3685 */ | 3685 */ |
3686 #if defined(MAC_OS_X_VERSION_10_9) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED)) | |
3687 if([saveDlg runModal] == NSModalResponseOK) | |
3688 #else | |
3686 if([saveDlg runModal] == NSFileHandlingPanelOKButton) | 3689 if([saveDlg runModal] == NSFileHandlingPanelOKButton) |
3690 #endif | |
3687 { | 3691 { |
3688 /* Get an array containing the full filenames of all | 3692 /* Get an array containing the full filenames of all |
3689 * files and directories selected. | 3693 * files and directories selected. |
3690 */ | 3694 */ |
3691 NSString* fileName = [[saveDlg URL] path]; | 3695 NSString* fileName = [[saveDlg URL] path]; |