Skip to main content

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

Arun, 

Did you find a way to update these files? Is there a way I can help?

Cheers,
Mikael

Le 24 sept. 2016 à 10:08, Mikaël Barbero <mikael@xxxxxxxxxxx> a écrit :

Done https://bugs.eclipse.org/bugs/show_bug.cgi?id=502090.

Thanks.
Mikael

Le 23 sept. 2016 à 21:41, Arun K Thondapu <arunkumar.thondapu@xxxxxxxxxx> a écrit :

Hi Mikael,

I haven't been able to test the scenario mentioned by you yet but I agree with your point that we should update the bridgesupport files to 10.11, AFAIK they had been created a long time ago and haven't been regenerated or updated since then to account for new and deprecated/removed Cocoa native APIs.

Can you please go ahead and raise a bug requesting for the updates and I'll try to figure out the process to do the same?

Thanks,
Arun

<graycol.gif>Mikaël Barbero ---19-09-2016 02:31:20 PM---It seems that the bridge support files for the Cocoa port are quite outdated. From https://www.eclip

From: Mikaël Barbero <mikael@xxxxxxxxxxx>
To: "Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
Date: 19-09-16 02:31 PM
Subject: [platform-swt-dev] Update Cocoa bridge support files
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx





It seems that the bridge support files for the Cocoa port are quite outdated. From https://www.eclipse.org/eclipse/development/plans/eclipse_project_plan_4_7.xml#target_environments, 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:

java.lang.NullPointerException
at org.eclipse.swt.tools.internal.MacGenerator.getCType(MacGenerator.java:1450)
at org.eclipse.swt.tools.internal.MacGenerator.generateCustomCallbacks(MacGenerator.java:1509)
at org.eclipse.swt.tools.internal.MacGenerator.generateMainClass(MacGenerator.java:790)
at org.eclipse.swt.tools.internal.MacGenerator.generate(MacGenerator.java:191)
at org.eclipse.swt.tools.internal.MacGeneratorUI.generate(MacGeneratorUI.java:320)
at org.eclipse.swt.tools.views.MacGeneratorView$GenJob.run(MacGeneratorView.java:40)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

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?

Thanks.
Mikael

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 https://developer.apple.com/videos/play/wwdc2016/239/ to see what I mean by native dark theme on the mac.
[attachment "signature.asc" deleted by Arun K Thondapu/India/IBM] _______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top