Re: Xcode 10 and disable layer backed windows in Mojave
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=cR1xKiP+yJF089mnewJ4vbucf4W3gzM8UmF2I364r6E=; b=V8kHJgogicQNZLjtIYP3XbZ6Q/VLCbPcBxxYMJtSjcAMvUfiDHtUs0yanCqMIPo6Cf x/k8srsFVQ1q/7+ULMYtNpoVADeD1TKoMvCGFneYNI2dGWeieJ59iasgCw7m5CjZO7dA ptsBud5gaupMMI1rDxRTBFVIKES2h0h+wPibeV0febEAT/8GqJoh2r5IWI2FhIpIiYjo SybPeymTfhvDYnZJEe8wPmyT/TXgdQJ8h9YZzPAmsqOJdLrYt2ZLOP1/yZ3rr2Ymufks nQSdXfneLWwbVTKd2LDQ6TP/dXMYMBstMdh9hh3XiuxP/CbCXYaMH6+yjTIdnDehvkWh SKjg==
On Oct 25, 2018, at 6:31 AM, Georg Seifert <georg.seifert@gmx.de> wrote:
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.
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.
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-dev@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/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Richard Charles