Drag the NSView+ASTEnhancements.h and .m files into your project.
Import NSView+ASTEnhancements.h where needed.
To add the subview so that it "fills" the container view using auto layout, you would then simply do:
[containerView addAutoLayoutSubview:embedSubView];