In the past I have managed to add a NSViewController's view to a subView of my 
window controller, usually something like

    viewController = [[RemindersViewController alloc] 
initWithNibName:@"RemindersViewController" bundle:nil];
    self.window.contentView = viewController.view;
    [[viewController view] setFrame: [myView bounds]];

Now I'm trying to get with the program and use auto layouts. Both NIBs (window 
& view controller) have auto layout enabled and the contents of the VC view (a 
table) should re-size to fill the view.

Except  (of course) the re-sizing doesn't work. I'm obviously missing something 
very simple. Please could some kind person explain how we make the dynamically 
added subview correctly track into the parent views 'custom view'

Many thanks,  Jonathan
    

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to