mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-20 06:20:32 +00:00
update comments
This commit is contained in:
@@ -8,7 +8,10 @@ BOOL GhosttyAddTabbedWindowSafely(
|
||||
NSInteger ordered,
|
||||
NSError * _Nullable * _Nullable error
|
||||
) {
|
||||
// AppKit occasionally throws NSException while reparenting tabbed windows.
|
||||
// AppKit occasionally throws NSException while adding tabbed windows,
|
||||
// in particular when creating tabs from the tab overview page since some
|
||||
// macOS update recently in 2025/2026 (unclear).
|
||||
//
|
||||
// We must catch it in Objective-C; letting this cross into Swift is unsafe.
|
||||
@try {
|
||||
[((NSWindow *)parent) addTabbedWindow:(NSWindow *)child ordered:(NSWindowOrderingMode)ordered];
|
||||
|
||||
Reference in New Issue
Block a user