Thanks. I keep trying to go to the constraint itself, and connect it to other 
views, etc. Setting a constraint requires touching UI bits in so many unrelated 
places.

-- 
Rick



On Aug 15, 2012, at 22:04 , Roland King <r...@rols.org> wrote:

> Ah - a question I asked myself many times until I watched the WWDC videos 
> where clearly it was meant to be so obvious that it was perhaps assumed 
> anyone would just understand how to do it. 
> 
> Select one button, then shift-select the other, you now have two buttons 
> selected. At the bottom right-hand corner of the main pane of interface 
> builder is a small, grey, pill-shaped control you perhaps missed, it looks 
> greyed out and inactive, but it's not. The middle piece of it is a bit like a 
> capital H, click that. At the bottom it says 'Widths Equally", click that. 
> That should add the constraint you want. Alternatively I'm sure you clicked 
> the Edit menu button and found nothing there, but it was there, it's called 
> Pin instead of Constrain. 
> 
> If you have not watched the WWDC 2012 videos, and have access to them, I 
> really advise watching all (there's 2 or 3 I don't recall) presentations on 
> Autolayout. When I first saw that feature I thought, bah, springs and struts 
> are fine, who needs this. Then I watched the videos. They are packed with 
> great demos, great tips and after I'd watched them I had a completely 
> different opinion and I'm very much looking forward to using them in anger 
> soon. 
> 
> 
> 
> On 16 Aug, 2012, at 9:48 AM, Rick Mann <rm...@latencyzero.com> wrote:
> 
>> So, here's a basic question about constraints: How do I make a sheet with 
>> Cancel and OK buttons, such that the two buttons keep the same width? This 
>> doesn't seem possible to do by simply dropping a couple buttons in IB. I'm 
>> sure it can be done programmatically, although I'm not sure of the best 
>> approach.
>> 
>> -- 
>> Rick
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 
>> 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/rols%40rols.org
>> 
>> This email sent to r...@rols.org
> 
> 
> _______________________________________________
> 
> 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/rmann%40latencyzero.com
> 
> This email sent to rm...@latencyzero.com


_______________________________________________

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

Reply via email to