RE: Question about debugging OS X Auto Layout
RE: Question about debugging OS X Auto Layout
- Subject: RE: Question about debugging OS X Auto Layout
- From: Lee Ann Rucker <email@hidden>
- Date: Tue, 15 Mar 2016 19:46:33 +0000
- Thread-topic: Question about debugging OS X Auto Layout
Start by giving all your views identifiers, that'll make them easier to track down; the error message will use the name and you can search for it in IB.
________________________________________
From: xcode-users-bounces+lrucker=email@hidden [xcode-users-bounces+lrucker=email@hidden] on behalf of Bill Cheeseman [email@hidden]
Sent: Tuesday, March 15, 2016 12:06 PM
To: xcode-users
Subject: Question about debugging OS X Auto Layout
I'm developing an OS X application using storyboards. I made the mistake of renaming two view controller classes to reverse their responsibilities, after my storyboard and Auto Layout constraints were pretty much complete. The application was building and running fine beforehand, but now when I build and run it I get a blank application window. This runtime error appears:
"2016-03-15 14:28:14.801 UI Browser[93092:22589120] Failed to set (contentViewController) user defined inspected property on (NSWindow): Unable to install constraint on view. Does the constraint reference something from outside the subtree of the view? That's illegal. constraint:<NSLayoutConstraint:0x608000085910 'NSTabViewController-TabViewLeading' NSTabView:0x100d18d50.leading == NSView:0x600000120c80.leading priority:749> view:<NSView: 0x600000120c80>"
How can I use this information to find the offending constraint? I can't figure it out by trying to think through the consequences of interchanging the two classes, and I really don't want to have to replace every constraint in the storyboard.
I did try removing and replacing the segues involving the two view controllers, but it made no difference.
--
Bill Cheeseman - email@hidden<mailto:email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden