Re: Constraints across sibling stack views?

2015-08-18 Thread Seth Willits
 On Aug 17, 2015, at 9:57 AM, David Duncan david.dun...@apple.com wrote:
 
 What's the proper way to have these labels all equal width, when they're in 
 different NSStackViews?
 
 Do you mean for the label to be equal width to another label (although it 
 shouldn’t matter, but I just want to make sure I understand from your 
 pictures)?
 
 I would expect that to work generically, but I don’t have any particular 
 insight into why it might not. If that fails, you might try doing 2 vertical 
 stacks and using baseline alignments across the vertical stack views 
 instead...

Thanks for the response.

I took another look to try your suggestion, and it turns out I managed to get 
it to work both ways. It seems like the warnings I was getting were just sticky 
leftovers that weren't actually real. After saving, closing the xib, clean 
building, and reopening the xib everything is fine.

So either two vertical stacks, or a vertical stack of three horizontal stacks, 
either works just fine.
http://www.sethwillits.com/temp/upshot/upshot_taR2gwwa.png

All is good!

--
Seth Willits





___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Constraints across sibling stack views?

2015-08-17 Thread David Duncan

 On Aug 9, 2015, at 10:14 PM, Seth Willits sli...@araelium.com wrote:
 
 
 In my OS X view, I have four popup buttons vertically stacked, each with a 
 label on the left. The labels all have equal width as each other and are 
 right-aligned, and the popups all have equal width as well.
 
 To manage this layout I created four horizontal stack views, one for each 
 label-popup pair, and placed those four stack views into a vertical stack 
 view. At this point, the labels are all sized to fit, as are the popups.
 
 
 If I add a constraint that says one label should be equal width to another 
 popup, I then get a constraint warning that there's a size mismatch for the 
 label.
 
 What's the proper way to have these labels all equal width, when they're in 
 different NSStackViews?

Do you mean for the label to be equal width to another label (although it 
shouldn’t matter, but I just want to make sure I understand from your pictures)?

I would expect that to work generically, but I don’t have any particular 
insight into why it might not. If that fails, you might try doing 2 vertical 
stacks and using baseline alignments across the vertical stack views instead...

 
 
 What I want:
 http://www.sethwillits.com/temp/upshot/upshot_7Yna0OGF.png
 
 After dumping into stack views:
 http://www.sethwillits.com/temp/upshot/upshot_yX7dV6OL.png
 
 
 
 --
 Seth Willits
 
 
 
 
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
 
 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:
 https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com
 
 This email sent to david.dun...@apple.com

--
David Duncan


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com