O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding Constraints to RaiseMan

In this chapter you will use Auto Layout in RaiseMan to allow the table view to resize with the window while the buttons stay fixed to the right side of the window.

In your RaiseMan project, open Document.xib. Right now, there are no constraints in this XIB and it looks like Figure 25.1.

Figure 25.1  RaiseMan unconstrained

RaiseMan unconstrained

Constraints from subview to superview

First you will add constraints for each of the three views – the scroll view which contains the table view, the Add Employee button, and the Remove button – to the content view of the window. First, select the scroll view and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required