Re: More constraints confusion
Re: More constraints confusion
- Subject: Re: More constraints confusion
- From: Charles Srstka <email@hidden>
- Date: Thu, 25 Apr 2013 20:55:03 -0500
On Apr 25, 2013, at 8:35 PM, Rick Mann <email@hidden> wrote:
> On Apr 25, 2013, at 18:30 , Charles Srstka <email@hidden> wrote:
>
>> Pinning *is* what you want. Do each of "Pin Leading/Trailing/Top/Bottom Edge To Superview", and then the height and width constraints should become deletable.
>
> Sorry, I misunderstood. Yes, I had already pinned the Leading/Trailing/Top/Bottom Edges To Superview.
Perhaps try it again. IB can be a little wonky sometimes WRT constraints; perhaps re-adding the constraints for the four edges to the superview again, and see if it makes IB realize that the height/width constraints aren't needed.
>> If it still won't let you delete them even after that, then just give them a low enough priority in the Inspector that they cease to matter.
>
> Like I said, I think this is something about Image Well (NSImageView). In its size inspector, it has three pre-defined sizes in a popup. I think IB is trying to require that it be of fixed size. I finally just gave up and wrote code to stick my image into the CALayer of an NSView, which does not exhibit this behavior in IB.
I tried it myself in IB with an NSImageView after reading your original post, and was not able to reproduce this behavior, so that's not it.
Charles
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden