Jump to content

Instantiation in Interface Builder 3.0


qwertyu
 Share

2 posts in this topic

Recommended Posts

I'm not quite sure how to instantiate a class in IB 3.0. My general workflow in IB 2.0 is that I would write my header file in Xcode, drag the file to the main IB window (with File's Owner, First Responder, etc), click the Classes button on the toolbar, and then instantiate the class. 

 

In IB 3.0 there is no Classes button, and I haven't been able to find a list of classes. How is class instantiation done in IB 3.0? Or does it mandate some sort of change in workflow? 

Link to comment
Share on other sites

So here's how it works:

 

1) Drag your header file to the main IB window.

2) Drag the blue cube (Custom Object) in the Library window to the IB window.

3) In the Object Attributes section of the Inspector (with Custom Object selected), select the name of your header file in the Custom Class dropdown list. 

Link to comment
Share on other sites

 Share

×
×
  • Create New...