Discussion:
Xcode 10 and disable layer backed windows in Mojave
(too old to reply)
Georg Seifert
2018-10-25 12:31:41 UTC
Permalink
When I build my app with Xcode 10, Mojave uses the new layer backed windows. My view drawing is (not yet) able to dealt with layer backed views.

So is there a way to disable the new window system? The only way I fond is not to link against the 10.14 SDK. But that is the SDK Xcode 10 is using even in 10.13.

Is there a way to link against the 10.13 SDK in Xcode 10. Any other ideas?

Thanks
Georg
_______________________________________________

Cocoa-dev mailing list (Cocoa-***@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/gegs%40ml-in.narkive.net

This email sent to ***@ml-in.narkive.net
Quincey Morris
2018-10-25 14:24:39 UTC
Permalink
Post by Georg Seifert
When I build my app with Xcode 10, Mojave uses the new layer backed windows.
I’m not sure what that means. I don’t recall anything new about windows or layer backing in Mojave (but I may have missed something, of course).
Post by Georg Seifert
My view drawing is (not yet) able to dealt with layer backed views.
The storyboard default for this did change at some point — but pre-Mojave, I thought. Anyway, if you don’t want layer-backed views, you can turn the option off in the View Effects inspector (the rightmost tab of the IB inspector panel). I believe you’ll have to do this for each root view.
_______________________________________________

Cocoa-dev mailing list (Cocoa-***@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/gegs%40ml-in.narkive.net

T
Richard Charles
2018-10-25 15:53:23 UTC
Permalink
Post by Georg Seifert
When I build my app with Xcode 10, Mojave uses the new layer backed windows. My view drawing is (not yet) able to dealt with layer backed views.
NSWindow has a content view and a view and can be layer backed. NSView has supported layer backing since OS X 10.5.
Post by Georg Seifert
So is there a way to disable the new window system? The only way I fond is not to link against the 10.14 SDK. But that is the SDK Xcode 10 is using even in 10.13.
AppKit Release Notes for macOS 10.14

"Windows in apps linked against the macOS 10.14 SDK are displayed using Core Animation when the app is running in macOS 10.14. This doesn’t mean that all views are layer-backed; rather, it means that all views are either layer-backed or draw into a shared layer with other layers.”

The release notes say nothing about this behavior being optional.
Post by Georg Seifert
Is there a way to link against the 10.13 SDK in Xcode 10. Any other ideas?
Not sure about linking but I think you need to make your views compatible with layer backing.

--Richard Charles

_______________________________________________

Cocoa-dev mailing list (Cocoa-***@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/gegs%40ml-in.narkive.net

This email sent to ***@ml-in.narkiv
Guillaume Laurent
2018-10-25 17:14:27 UTC
Permalink
Post by Georg Seifert
When I build my app with Xcode 10, Mojave uses the new layer backed windows. My view drawing is (not yet) able to dealt with layer backed views.
So is there a way to disable the new window system? The only way I fond is not to link against the 10.14 SDK. But that is the SDK Xcode 10 is using even in 10.13.
Unless there’s been some fixes on this, you probably don’t want that. I recall that since 10.14 all NSViews are expected to be layer backed (WWDC 18 “What’s new in Cocoa” session, I think ?), and in my case I got random crashes on scrollviews when running an app under Mojave where scrollviews hadn’t yet been updated to layer-backed.

_______________________________________________

Cocoa-dev mailing list (Cocoa-***@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/gegs%40ml-in.n

Continue reading on narkive:
Loading...