How to set NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints?

Yoav picture Yoav · Jul 30, 2012 · Viewed 12.1k times · Source

I am getting the following message from Cocoa Auto Layout mechanism:

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.

But I don't know how to "Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES".

How do I set this?

Answer

JJD picture JJD · Oct 30, 2012

You can configure the setting for a particular scheme as follows ...

1) Select the scheme from the popup menu and choose Edit Scheme ...

Edit Scheme ... menu

2) In the following slide down window add a new entry to Arguments Passed on Launch.
Copy and paste the following line.

-NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints YES

Edit view