Commit e18bd28
Fix warning message on Mac about secure coding not enabled (eclipse-platform#1231)
- See eclipse-platform#1228
- On macOS 14 and later a warning message is written to console:
"WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES."
- As recommended by Apple, this change adds a new selector for applicationSupportsSecureRestorableState and returns a 1 value (YES) in the callback in the Display class
- However, this only takes care of the NSApplicationDelegate created in the Display class. The warning message will still appear when a splash screen is created in Equinox JNI code so a fix there is also required. See eclipse-equinox/equinox#630
- This implementation for SWT can be tested by using the -noSplash argument when launching Eclipse1 parent 481d8b1 commit e18bd28
3 files changed
Lines changed: 9 additions & 3 deletions
File tree
- bundles/org.eclipse.swt
- Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa
- Eclipse SWT/cocoa/org/eclipse/swt/widgets
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1052 | 1052 | | |
1053 | 1053 | | |
1054 | 1054 | | |
| 1055 | + | |
1055 | 1056 | | |
1056 | 1057 | | |
1057 | 1058 | | |
| |||
5902 | 5903 | | |
5903 | 5904 | | |
5904 | 5905 | | |
| 5906 | + | |
| 5907 | + | |
| 5908 | + | |
5905 | 5909 | | |
5906 | 5910 | | |
5907 | 5911 | | |
| |||
0 commit comments