I knew that NSTexturedBackgroundMask is replaced with NSWindowStyleMaskTexturedBackground and I tried that but it did not work. But it seems we used to get an warning when it was deprecated "

WARNING: Textured window <AtomNSWindow: 0x7fe3687673e0> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead."

So, I set that property instead. It was also mentioned in 

https://developer.apple.com/documentation/appkit/nswindow/1419167-titlebarappearstransparent?language=objc

to set "tilebarAppearsTransparent" this property to YES when NSFullSizeContentViewWindowMask is also set, so I used that. 

And if you see the output after my fix, it is showing brushMetalLook output correctly, 

Also NSWindow.h that my 10.14.6 has does not say “textured background should no longer be used”. I am attaching the file

Attachment: NSWindow.h
Description: Binary data

static const NSWindowStyleMask NSTexturedBackgroundWindowMask NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSWindowStyleMaskTexturedBackground", 10.0, 10.12) = NSWindowStyleMaskTexturedBackground;

Regards
Prasanta

On 22-Mar-2020, at 4:17 AM, Sergey Bylokhov <sergey.bylok...@oracle.com> wrote:

Hi, Prasanta.

Issue is because of the fact that with migration to new SDK by JDK-8205424, the flags used to specify textured background for NSWindow is deprecated and we did not update the code with new flag.>> Fix is to use new flags as specified by apple doc
Are you sure that the new flag is a replacement of "NSTexturedBackgroundWindowMask"?
I think that this new flag is a replacement of "NSFullSizeContentViewWindowMask" which is
also used in the AWTWindow:

209         if (IS(styleBits, FULL_WINDOW_CONTENT))  type |= NSFullSizeContentViewWindowMask;

I guess the old property "NSTexturedBackgroundWindowMask" should be replaced by the
"NSWindowStyleMaskTexturedBackground" but it is also deprecated since 10.14:

============================================
http://codeworkshop.net/objc-diff/sdkdiffs/macos/10.14/AppKit.html

Modified NSWindowStyleMaskTexturedBackground
Availability Deprecation Message
From Available none
To Deprecated Textured window style should no longer be used
============================================

So it looks like we already do our best, and should recommend everybody to not use the "Textured window style".

--
Best regards, Sergey.

Reply via email to