Skip to content

[Cocoa] Replace deprecated OS constants (compositing, font panel, color space, date picker, panel)#3354

Open
HeikoKlare wants to merge 1 commit into
eclipse-platform:masterfrom
HeikoKlare:cocoa-replace-deprecated-constants-3214
Open

[Cocoa] Replace deprecated OS constants (compositing, font panel, color space, date picker, panel)#3354
HeikoKlare wants to merge 1 commit into
eclipse-platform:masterfrom
HeikoKlare:cocoa-replace-deprecated-constants-3214

Conversation

@HeikoKlare
Copy link
Copy Markdown
Contributor

@HeikoKlare HeikoKlare commented Jun 1, 2026

Summary

Replaces deprecated macOS SDK constants with their non-deprecated replacements as identified in #3214:

  • Compositing Operations: NSCompositeXxxNSCompositingOperationXxx
  • Font Panel Mode Masks: NSFontPanelAllXxxMaskNSFontPanelModeMaskXxx
  • Color Space: NSRGBColorSpaceModelNSColorSpaceModelRGB
  • Date Picker Styles: NSXxxDatePickerStyleNSDatePickerStyleXxx
  • Panel: NSCancelButtonNSModalResponseCancel

Changes cover OS.java, all Cocoa widget/graphics files using these constants, and the AppKitFull.bridgesupport/.extras files used for code generation.

Contributes to #3214

Test plan

  • Verify macOS build passes
  • Run SWT test suite on macOS

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

Test Results (macos)

   58 files  ±0     58 suites  ±0   9m 2s ⏱️ + 2m 44s
4 577 tests ±0  4 330 ✅ ±0  247 💤 ±0  0 ❌ ±0 
2 214 runs  ±0  2 150 ✅ ±0   64 💤 ±0  0 ❌ ±0 

Results for commit caad5bf. ± Comparison against base commit 9ab3898.

♻️ This comment has been updated with latest results.

…or space, date picker, panel)

Replace deprecated macOS SDK constants with their non-deprecated replacements
as identified in issue eclipse-platform#3214: compositing operations (NSCompositeXxx ->
NSCompositingOperationXxx), font panel mode masks (NSFontPanelAllXxxMask ->
NSFontPanelModeMaskXxx), color space model (NSRGBColorSpaceModel ->
NSColorSpaceModelRGB), date picker styles (NSXxxDatePickerStyle ->
NSDatePickerStyleXxx), and panel response (NSCancelButton ->
NSModalResponseCancel).

Contributes to eclipse-platform#3214

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@HeikoKlare HeikoKlare marked this pull request as ready for review June 1, 2026 19:41
@HeikoKlare HeikoKlare force-pushed the cocoa-replace-deprecated-constants-3214 branch from 3f3945b to caad5bf Compare June 1, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant