Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not sure what kind of object you wanted to add your outlets/actions to, but one might infer from the presence of the <code>window</code> reference that you're trying to add that to your app delegate. In that case, you just need to make sure that your app delegate appears in the list of objects, and that you've specified the base class for that app delegate:</p> <p><img src="https://i.stack.imgur.com/frXY5.png" alt="app delegate"></p> <p>If, however, you were using some custom controller object, you would drag an generic object from the library to your NIB's list of objects. Then specify the custom controller class for that object (<code>MyController</code> in my example):</p> <p><img src="https://i.stack.imgur.com/SfRs6.png" alt="Add controller to NIB"></p> <p>Having done that, when you drag your outlets/actions from the window to the assistant editor, in addition to the app delegate, your custom controller object interface/implementation files will be options that you can use.</p> <hr> <p>My original answer was an iOS-centric answer. The above should describe the Cocoa equivalent. I'll keep this original answer here for reference.</p> <p>Original answer:</p> <p>In Interface Builder, make sure to specify the base class for the object you're linking the outlets to. If putting these outlets in a view controller, make sure your storyboard's scene has the view controller's class defined. And it's a little easier if your assistant editor is set to "automatic":</p> <p><img src="https://i.stack.imgur.com/IJw7c.png" alt="storyboard"></p> <p>The above screen snapshot is relevant if you're using storyboards. If using NIBs, the idea is the same, but you need to make sure you set the NIB's file owner:</p> <p><img src="https://i.stack.imgur.com/qQNYx.png" alt="NIB"></p> <p>If your <code>IBOutlet</code> references are in a <code>UIView</code> subclass, you analogously have to specify the base class for your storyboard scene's view (or the NIB's view).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload