• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AutoLayout in a Box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AutoLayout in a Box


  • Subject: AutoLayout in a Box
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 10 Mar 2016 13:22:25 +0700

I created a new OS X Application with Xcode Version 7.2.1 (7C1002).

In the middle of the window I placed an NSTextField.

Xcode → Editor → Embed In… → Box.

Set Top, Bottom, Leading, Trailing of Box to SuperView (window) = Default
Set Top, Bottom, Leading, Trailing of TextField to SuperView (box) = Default
TextField width ≥ 200
TextField heigth = 20

1. Xcode tells me that TextField needs constraints for y position or height. Why?

2. When I run the app, I get told “Unable to simultaneously satisfy constraints:…”

3. I can resize the window so that the TextField clearly get smaller than 200.

None of these problems for a TextField outside of the box.

I know that thinking outside the box is considered a virtue, but being able to do autolayout in a box would also be a good think.

How can this be done?

Gerriet.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: "Test" command disabled
  • Next by Date: Linking an iOS app to a framework that links to a framework
  • Previous by thread: Re: "Test" command disabled
  • Next by thread: Linking an iOS app to a framework that links to a framework
  • Index(es):
    • Date
    • Thread