emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ee371f55b35: Avoid warning when building on macOS versions < 14 (


From: Mattias Engdegård
Subject: master ee371f55b35: Avoid warning when building on macOS versions < 14 (bug#72440)
Date: Mon, 5 Aug 2024 15:34:04 -0400 (EDT)

branch: master
commit ee371f55b359b509cd381c87e78b5f5ee9311f37
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    Avoid warning when building on macOS versions < 14 (bug#72440)
    
    * src/nsterm.m ([EmacsView initFrameFromEmacs:]):
    The clipsToBounds property of NSView is only public from macOS 14 on.
---
 src/nsterm.m | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index be9142f7a4a..5c2e6446f7e 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -8073,9 +8073,10 @@ ns_in_echo_area (void)
 #ifdef NS_IMPL_COCOA
   old_title = 0;
   maximizing_resize = NO;
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 140000
   /* Restore to default before macOS 14 (bug#72440).  */
-  if ([self respondsToSelector:@selector(setClipsToBounds:)])
-    [self setClipsToBounds: YES];
+  [self setClipsToBounds: YES];
+#endif
 #endif
 
 #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400



reply via email to

[Prev in Thread] Current Thread [Next in Thread]