In a view there is a NSBox
. I have to create different controls (Labels, TextFields, PopupButtons, Radio Buttons) based on data, and I want to place these controls in that box.
Suppose the data is like:
label: Name //name field is editable
label: PopupButton
label: Radio Button
And i'm getting xpos=2
and ypos=1
in the response (which means if we consider a box as a table we have to place the control in 2nd row 1st column).
So my question is: while placing these views in the NSBox
, how to adjust the constraints? And if we are editing any thing in the TextField how to adjust the remaining views?