Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] macOS 10.14 (mojave)

I’ve tried some time ago with an earlier beta installed on an external hard drive.

As documented in https://developer.apple.com/documentation/appkit/nsappearancecustomization/choosing_a_specific_appearance_for_your_app you don’t have to link against the 10.14 macOS SDK, but can also simply set the NSRequiresAquaSystemAppearance property to false in the Info.plist

I did that  and the window titles etc. were dark, but I got some crashes in swt (I think NPEs) and the application was unusable.

I don’t know if this was caused by bugs in that beta version or if the behaviour of some APIs have changed in a documented way if this is set.

(I think when I tried, there was no API-update document available, maybe it is by now - haven’t checked since then)


> Am 10.09.2018 um 18:37 schrieb Thomas Singer <ts-swt@xxxxxxxxxxx>:
> 
> Hi Jacob,
> 
> Thank you very much for the answer. So I understand that SWT (or any other hard-linked application) can't support macOS 10.14 and macOS <10.14 at the same time?
> 
> -- 
> Best regards,
> Thomas Singer
> 
> 
> On 10/09/2018 17:48, Jacob wrote:
>> For native Cocoa applications they need to be linked against the 10.14 SDK to enable dark mode. How that would work with Java and SWT I don’t know, perhaps link the native dynamic libraries with the new SDK. It is possible to manually handle this if relinking with 10.14 SDK is not enough.
>> The reason for this is not default is to avoid breaking existing applications. There are applications with hard coded colors which need to be updated to look good with the dark mode. The SDK provides dynamic colors which will change depending on the mode that is used. SWT might need to be updated as well.
>> There are several good videos from this year’s WWDC which covers dark mode and how to enable that for applications.
>> https://developer.apple.com/videos/play/wwdc2018/210/
>> https://developer.apple.com/videos/play/wwdc2018/218/
>> —
>> /Jacob Carlborg
>>> On 10 Sep 2018, at 11:29, Thomas Singer <ts-swt@xxxxxxxxxxx> wrote:
>>> 
>>> Hi all,
>>> 
>>> Does anybody already had a chance to try an SWT application on the macOS Mojave preview, especially the dark mode? I've received screenshots from a user of SmartGit and it shows light controls and even a light (system) toolbar. Could it be that there are some changes required on the SWT/native part to make use of the dark mode?
>>> 
>>> -- 
>>> Best regards,
>>> Thomas Singer
>>> =============
>>> syntevo GmbH
>>> https://www.syntevo.com
>>> https://www.syntevo.com/blog
>>> _______________________________________________
>>> 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