views:

29

answers:

1

I have a horizontal NSSplitView which sits on top of right sub view of another vertical NSSplitView. I have delegate methods to constraint the left sub view from resizing. But the same delegate methods are never invoked for the horizontal NSSplitView sitting on top. What can be done to achieve this?

A: 

If the delegate method is fired for the Left Split view controller but not for the Right split view controller, then most likely you haven't set the delegate for the Right Split View Controller.

If you create the right split from an Xcode template, then it will be created in Interface builder from a nib file. Open Interface builder, then right-click drag and connect the delegate property to the object that you want to be the delegate.

If the Right split view controller object isn't created in a nib, then you will need to connect this up in code.

Brock Woolf
Thanks a ton. Delegates were missing. Binding of delegates solved it.
Subrat