macOS native rounded borders: (PR #772)

- removed opacity from contentView.layer
- catch and log exceptions
This commit is contained in:
Karl Tauber
2025-01-21 11:58:03 +01:00
parent 2ef87dc789
commit 5e78b21df7
4 changed files with 20 additions and 5 deletions

View File

@@ -29,15 +29,21 @@
#endif
#define JNI_COCOA_TRY() \
@try {
#define JNI_COCOA_CATCH() \
} @catch( NSException *ex ) { \
NSLog( @"Exception: %@\nReason: %@\nUser Info: %@\nStack: %@", \
[ex name], [ex reason], [ex userInfo], [ex callStackSymbols] ); \
}
#define JNI_COCOA_ENTER() \
@autoreleasepool { \
@try {
JNI_COCOA_TRY()
#define JNI_COCOA_EXIT() \
} @catch( NSException *ex ) { \
NSLog( @"Exception: %@\nReason: %@\nUser Info: %@\nStack: %@", \
[ex name], [ex reason], [ex userInfo], [ex callStackSymbols] ); \
} \
JNI_COCOA_CATCH() \
}