Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Update Cocoa bridge support files

It seems that the bridge support files for the Cocoa port are quite outdated. From, the minimum version of supported macOS is 10.11, but there lack some classes/protocols/... from the bridge support files for this version. 

I tried to copy and override the bridgesupport from my own system:

cp /System/Library/Frameworks/AppKit.framework/Resources/BridgeSupport/AppKit.bridgesupport \
path/to/git/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport

and it works well (at least, missing classes/protocols/.../ show up correctly in the Mac Gen view), but when I try to generate again, it fails with NPE: 


It actually fails logically, as a comparison between the current HEAD and my own bridgesupport file shows that declared_type is not specified in my system files. 

Is there anything I could do to update the bridge support files to 10.11 ones?


PS: if you wonder why I want to do that, the goal is to test the NSAppearance settings on NSWindow to have a *native* dark theme on macOS. The approach would then be similar to Alex's one for GTK theming support (except that on macOS, we would have no theming, only bright or dark theme, but all native ;)) Check slides 98 to 103 (or video somewhere around 24:00) from to see what I mean by native dark theme on the mac.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Back to the top