mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-15 08:17:12 -06:00
macOS native rounded borders: (PR #772)
- removed opacity from contentView.layer - catch and log exceptions
This commit is contained in:
@@ -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() \
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user