]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid warning when building on macOS versions < 14 (bug#72440)
authorMattias EngdegÄrd <mattiase@acm.org>
Mon, 5 Aug 2024 19:27:17 +0000 (21:27 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 6 Aug 2024 09:55:40 +0000 (11:55 +0200)
* src/nsterm.m ([EmacsView initFrameFromEmacs:]):
The clipsToBounds property of NSView is only public from macOS 14 on.

(cherry picked from commit ee371f55b359b509cd381c87e78b5f5ee9311f37)

src/nsterm.m

index be9142f7a4a50b4467ed451859e371e8bff93e87..5c2e6446f7ed6edcccf9b3decf91f246f44a991a 100644 (file)
@@ -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