Commit d727af9
committed
[Cocoa] Replace deprecated macOS Button Type and Bezel Style constants
Replaces deprecated NSButtonCell.h constants (deprecated since macOS 10.14)
with their modern equivalents as tracked in issue #3214:
Button Types:
NSMomentaryLightButton -> NSButtonTypeMomentaryLight
NSPushOnPushOffButton -> NSButtonTypePushOnPushOff
NSRadioButton -> NSButtonTypeRadio
NSSwitchButton -> NSButtonTypeSwitch
Bezel Styles:
NSRoundedBezelStyle -> NSBezelStylePush
NSRegularSquareBezelStyle -> NSBezelStyleFlexiblePush
NSShadowlessSquareBezelStyle -> NSBezelStyleSmallSquare
NSRoundedDisclosureBezelStyle -> NSBezelStylePushDisclosure
Updated OS.java constant declarations, AppKitFull.bridgesupport(.extras),
and all call sites in Button, DateTime, Table, and Tree widgets.1 parent ee1713a commit d727af9
File tree
7 files changed
+41
-33
lines changed- bundles/org.eclipse.swt
- Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa
- Eclipse SWT/cocoa/org/eclipse/swt/widgets
7 files changed
+41
-33
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1309 | 1309 | | |
1310 | 1310 | | |
1311 | 1311 | | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
1312 | 1316 | | |
1313 | 1317 | | |
1314 | 1318 | | |
| |||
1325 | 1329 | | |
1326 | 1330 | | |
1327 | 1331 | | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
1328 | 1336 | | |
1329 | 1337 | | |
1330 | 1338 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4372 | 4372 | | |
4373 | 4373 | | |
4374 | 4374 | | |
| 4375 | + | |
| 4376 | + | |
| 4377 | + | |
| 4378 | + | |
4375 | 4379 | | |
4376 | 4380 | | |
4377 | 4381 | | |
4378 | 4382 | | |
4379 | 4383 | | |
4380 | 4384 | | |
| 4385 | + | |
| 4386 | + | |
| 4387 | + | |
| 4388 | + | |
4381 | 4389 | | |
4382 | 4390 | | |
4383 | 4391 | | |
| |||
4454 | 4462 | | |
4455 | 4463 | | |
4456 | 4464 | | |
4457 | | - | |
4458 | 4465 | | |
4459 | 4466 | | |
4460 | 4467 | | |
| |||
4486 | 4493 | | |
4487 | 4494 | | |
4488 | 4495 | | |
4489 | | - | |
4490 | 4496 | | |
4491 | | - | |
4492 | 4497 | | |
4493 | | - | |
4494 | 4498 | | |
4495 | 4499 | | |
4496 | 4500 | | |
4497 | 4501 | | |
4498 | 4502 | | |
4499 | 4503 | | |
4500 | | - | |
4501 | | - | |
4502 | 4504 | | |
4503 | 4505 | | |
4504 | 4506 | | |
| |||
4510 | 4512 | | |
4511 | 4513 | | |
4512 | 4514 | | |
4513 | | - | |
4514 | 4515 | | |
4515 | 4516 | | |
4516 | 4517 | | |
4517 | 4518 | | |
4518 | 4519 | | |
4519 | 4520 | | |
4520 | | - | |
4521 | 4521 | | |
4522 | 4522 | | |
4523 | 4523 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2159 | 2159 | | |
2160 | 2160 | | |
2161 | 2161 | | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
2162 | 2166 | | |
2163 | 2167 | | |
2164 | 2168 | | |
2165 | 2169 | | |
2166 | 2170 | | |
2167 | 2171 | | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
2168 | 2176 | | |
2169 | 2177 | | |
2170 | 2178 | | |
| |||
2242 | 2250 | | |
2243 | 2251 | | |
2244 | 2252 | | |
2245 | | - | |
2246 | 2253 | | |
2247 | 2254 | | |
2248 | 2255 | | |
| |||
2274 | 2281 | | |
2275 | 2282 | | |
2276 | 2283 | | |
2277 | | - | |
2278 | 2284 | | |
2279 | | - | |
2280 | 2285 | | |
2281 | | - | |
2282 | 2286 | | |
2283 | 2287 | | |
2284 | 2288 | | |
2285 | 2289 | | |
2286 | 2290 | | |
2287 | 2291 | | |
2288 | | - | |
2289 | | - | |
2290 | 2292 | | |
2291 | 2293 | | |
2292 | 2294 | | |
| |||
2298 | 2300 | | |
2299 | 2301 | | |
2300 | 2302 | | |
2301 | | - | |
2302 | 2303 | | |
2303 | 2304 | | |
2304 | 2305 | | |
2305 | 2306 | | |
2306 | 2307 | | |
2307 | 2308 | | |
2308 | | - | |
2309 | 2309 | | |
2310 | 2310 | | |
2311 | 2311 | | |
| |||
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
833 | | - | |
| 833 | + | |
834 | 834 | | |
835 | | - | |
| 835 | + | |
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
| 204 | + | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
| 587 | + | |
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
| 617 | + | |
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| |||
0 commit comments