On 2012-01-03, at 7:33 PM, Conrad Shultz wrote: On 1/3/12 4:24 PM, Peter Teeson wrote: On 2012-01-03, at 4:14 PM, Quincey Morris wrote:
On Jan 3, 2012, at 11:22 , Peter Teeson wrote:
The documentation in the User Guide and elsewhere states that there
should be an
Add Constraint menu or it should be found under the Align menu item.
Not for me using Lion 10.7.2 and Xcode 4.2.1.
Has anyone else experienced this?
Yes. The various constraints are available on the Align and Pin
submenus of the Editor menu.
That's where I looked after reading the documentation.
As I said above they do not appear for me.
In fact I checked all the Editor menu items.
Nothing about Constraints anywhere
This bit me too. Xcode doesn't use the word "constraint" but if you, for example, select two controls and choose Pin->Horizontal Spacing it will create an appropriate constraint between the two controls. Ditto for width, height, alignment, etc. (This all presupposes that you have enabled auto layout in your nib inspector.)
Yes of course I set auto layout (as stated in my first post). I tried your suggestion of Pin>Vertical Spacing and it worked. Thanks Conrad.
For the record (Recall that I am doing the "Your First App" tutorial and this is in the Trackmix project)
In my case I select the nib in the Project Navigator which brings "IB" into the Standard Editor area.Then in that section where it shows the Objects I see Constraints when I press the Window and View disclosure triangles. Furthermore if I do that for the three objects, Text Field, Vertical Slider, and Push Button. there are also Constraints shown for the first two but not for the Push Button.
All of these Constraints were added automatically when I used the File Inspector and clicked on the Use Auto Layout checkbox. Why it failed to add one between the Vertical Slider and the Push Button I don't know.
Which is why I wanted to add a User Constraint. But cannot find how to do that as none of the documented (in Interface Builder Help) ways appear as menu items. (Auto Layout: Adding Constraints in Interface Builder Help)
So the question we are left with is Is this a documentation error (which caused me to waste a lot of time) or is it a recursion, or a never implemented item?
I'll file another bug report for this if needed since I already filed one on the disclosure triangles.
_______________________________________________________ You can learn something new every day unless you are very careful!
|