unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#72440: 31.0.50; MacOS: TUINSRemoteViewController log message
@ 2024-08-03 10:33 Gerd Möllmann
  2024-08-05  7:42 ` Gerd Möllmann
  2024-08-05 15:14 ` Mattias Engdegård
  0 siblings, 2 replies; 12+ messages in thread
From: Gerd Möllmann @ 2024-08-03 10:33 UTC (permalink / raw)
  To: 72440; +Cc: Alan Third

On macOS 14, Emacs occasionally prints to stderr

  2024-08-03 11:45:26.785586+0200 emacs[97956:1226150] [miscellany] CLIENT ERROR: TUINSRemoteViewController does not override -viewServiceDidTerminateWithError: and thus cannot react to catastrophic errors beyond logging them

Some digging on the Internet reveals that this is in the end caused by
an API change in NSView in macOS 14.

  https://developer.apple.com/documentation/macos-release-notes/appkit-release-notes-for-macos-14#NSView

  /* Defaults to NO on macOS 14 and later. Defaults to YES on previous releases. Note some classes (like NSClipView) set their own default values differently than NSView itself.
   */
  @property BOOL clipsToBounds API_AVAILABLE(macos(10.9));

Proposed fix for emacs-30 (minus the igc stuff):

1 file changed, 4 insertions(+)
src/nsterm.m | 4 ++++

modified   src/nsterm.m
@@ -8069,6 +8069,10 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f
   emacsframe = igc_xalloc_raw_exact (1);
 #else
   emacsframe = xzalloc (sizeof *emacsframe);
+#endif
+#ifdef NS_IMPL_COCOA
+  if (NSAppKitVersionNumber >= NSAppKitVersionNumber14_0)
+    self.clipsToBounds = YES;
 #endif
   windowClosing = NO;
   processingCompose = NO;








^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-08-06  3:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-03 10:33 bug#72440: 31.0.50; MacOS: TUINSRemoteViewController log message Gerd Möllmann
2024-08-05  7:42 ` Gerd Möllmann
2024-08-05 15:14 ` Mattias Engdegård
2024-08-05 15:27   ` Gerd Möllmann
2024-08-05 15:49     ` Mattias Engdegård
2024-08-05 18:27       ` Gerd Möllmann
2024-08-05 19:16         ` Alan Third
2024-08-05 19:38           ` Mattias Engdegård
2024-08-05 19:46             ` Mattias Engdegård
2024-08-05 20:01               ` Alan Third
2024-08-06  3:29                 ` Gerd Möllmann
2024-08-05 20:12             ` Alan Third

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).