Re: NSLayoutConstraint crash

2018-03-16 Thread David Catmull
Thanks for the responses. It looks like it was a problem with how I was instantiating my NSStackView subclass in the xib. I dragged in a Custom View and then changed the class, I guess assuming that IB would see that my class is a subclass of NSStackView. Of course, what I should have done was drag

Re: NSLayoutConstraint crash

2018-03-16 Thread Jack Brindle
I would be willing to bet that you are throwing a lot of constraint exceptions without realizing it. When the view is laid out the constraints are evaluated, including the priorities. When a set of constraints has a conflict with another (very easy to do) the priorities come into play. If you se

Re: NSLayoutConstraint crash

2018-03-16 Thread David Catmull
I might try it, but it's difficult to do accurately because the views are assembled programmatically - it's dynamically generated based on the data read in. On Fri, Mar 16, 2018 at 10:37 AM, Richard Charles wrote: > > > On Mar 16, 2018, at 9:03 AM, David Catmull > wrote: > > > > After I set up

Re: NSLayoutConstraint crash

2018-03-16 Thread Richard Charles
> On Mar 16, 2018, at 9:03 AM, David Catmull wrote: > > After I set up a somewhat complex view hierarchy, I'm getting a crash with > this exception: > > 2018-03-16 08:59:21.814873-0600 App[31201:13046721] *** Assertion failure > in -[NSLayoutConstraint setPriority:], > /BuildRoot/Library/Caches

Re: NSLayoutConstraint crash

2018-03-16 Thread David Catmull
I found that in my googling, but since I'm not changing priorities, it wasn't helpful. On Fri, Mar 16, 2018 at 10:06 AM, Richard Charles wrote: > > > On Mar 16, 2018, at 9:03 AM, David Catmull > wrote: > > > > After I set up a somewhat complex view hierarchy, I'm getting a crash > with > > this

Re: NSLayoutConstraint crash

2018-03-16 Thread Richard Charles
> On Mar 16, 2018, at 9:03 AM, David Catmull wrote: > > After I set up a somewhat complex view hierarchy, I'm getting a crash with > this exception: > > 2018-03-16 08:59:21.814873-0600 App[31201:13046721] *** Assertion failure > in -[NSLayoutConstraint setPriority:], > /BuildRoot/Library/Caches

NSLayoutConstraint crash

2018-03-16 Thread David Catmull
After I set up a somewhat complex view hierarchy, I'm getting a crash with this exception: 2018-03-16 08:59:21.814873-0600 App[31201:13046721] *** Assertion failure in -[NSLayoutConstraint setPriority:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/Foundation/Foundation-1451/Foundation/Layout.s