Skip to content

Interface Builder: Connection Trick

Categories: Cocoa

Table of Contents

While working on the next version of XASH I came across a problem: I couldn’t seem to connect to a WebView which was a sub-view of a NSView which was a sub-view of a NSSplitView. The connector just wouldn’t select the WebView no-matter how I dragged my mouse over it. I did some research and came across a feature I never knew existed in interface builder, a hierarchical view of all the UI elements and object instances:

The badly circled button on the right of the window allows you to access this view.

This is really nice for easily setting up connections between controller objects and UI elements- you can easily select the UI elements no-matter how deep the UI elements are nested.