Are Cocoa automatic layouts backward compatible?

With Xcode 4 on OS X 10.7, Lion introduced a fantastic new way to handle the spatial relationships of NIB interface elements: Car markets .

At the top of the auto-layout document page, Apple states:

Note. Auto-linking is only available on Mac OS X version 10.7 and later. If you use Xcode 4 on Mac OS X version 10.6, automatic layout is not available.

At first glance, we can assume that Auto Layouts will either not compile or work in pre-Lion systems. However, when I re-read the notification and the doc page, it began to look like automatic layouts simply do not exist in Xcode on pre-Lion systems.

So, do automatic layouts, after compiling on a Lion-based machine, work on pre-Lion machines? I would suggest that Apple might have accomplished this by combining Auto Layouts into spring / strut-like settings.

How to disable automatic layouts in Interface Builder

+6
source share
1 answer

Autostart "engine" does not exist in AppKit.framework on systems prior to 10.7, so your previous thinking was correct: applications that use auto-detection will not work with 10.6 and earlier.

+8
source

Source: https://habr.com/ru/post/909138/


All Articles