Files
ghostty/macos/Sources/Helpers/ObjCExceptionCatcher.h
2026-02-25 08:58:09 -08:00

14 lines
445 B
Objective-C

#import <Foundation/Foundation.h>
/// This file contains wrappers around various ObjC functions so we can catch
/// exceptions, since you can't natively catch ObjC exceptions from Swift
/// (at least at the time of writing this comment).
/// NSWindow.addTabbedWindow wrapper
FOUNDATION_EXPORT BOOL GhosttyAddTabbedWindowSafely(
id _Nonnull parent,
id _Nonnull child,
NSInteger ordered,
NSError * _Nullable * _Nullable error
);