Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints?

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?

like image 951
Yoav Avatar asked Jul 30 '12 12:07

Yoav


1 Answers

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

like image 64
JJD Avatar answered Oct 24 '22 23:10

JJD