summaryrefslogtreecommitdiff
path: root/src/nsfns.m
diff options
context:
space:
mode:
authorAlan Third <alan@idiocy.org>2017-12-10 20:15:52 +0000
committerAlan Third <alan@idiocy.org>2017-12-16 16:35:46 +0000
commit95e7195f0d2a30beb2aaa0c324dd6049a168ba5b (patch)
tree1a914601410a688511b1112cb16f18fda575d7a0 /src/nsfns.m
parentf63d9f86b5688ac84ec6e7eecdbb6cac103dbcf2 (diff)
downloademacs-95e7195f0d2a30beb2aaa0c324dd6049a168ba5b.tar.gz
Silence macOS 10.13 deprecation notices (Bug#29643)
* src/nsfns.m (Fx_display_backing_store): (Fx_display_save_under): Don't use NSBackingStoreRetained or NSBackingStoreNonretained on macOS 10.13+. * src/nsselect.m (symbol_to_nsstring): (ns_string_to_symbol): (nxatoms_of_nsselect): Replace NSGeneralPboard with NSPasteboardNameGeneral. * src/nsterm.h: #define NSPasteboardNameGeneral to NSGeneralPboard on GNUstep and macOS < 10.13. * src/nsterm.m (EmacsView::resetCursorRects): (EmacsScroller::resetCursorRects): Don't use setOnMouseEntered on macOS 10.13+.
Diffstat (limited to 'src/nsfns.m')
-rw-r--r--src/nsfns.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nsfns.m b/src/nsfns.m
index 81722681674..064b476fb4e 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -1896,10 +1896,12 @@ If omitted or nil, that stands for the selected frame's display. */)
{
case NSBackingStoreBuffered:
return intern ("buffered");
+#if defined (NS_IMPL_GNUSTEP) || MAC_OS_X_VERSION_MIN_REQUIRED < 101300
case NSBackingStoreRetained:
return intern ("retained");
case NSBackingStoreNonretained:
return intern ("non-retained");
+#endif
default:
error ("Strange value for backingType parameter of frame");
}
@@ -1953,9 +1955,11 @@ If omitted or nil, that stands for the selected frame's display. */)
case NSBackingStoreBuffered:
return Qt;
+#if defined (NS_IMPL_GNUSTEP) || MAC_OS_X_VERSION_MIN_REQUIRED < 101300
case NSBackingStoreRetained:
case NSBackingStoreNonretained:
return Qnil;
+#endif
default:
error ("Strange value for backingType parameter of frame");