Accessing IB created objects

Discussion in 'iOS Programming' started by thomasjt, May 16, 2009.

  1. thomasjt macrumors newbie

    Joined:
    Apr 16, 2009
    #1
    Hello,

    How do you find out what something is called when IB creates the object specifically, and you've only provided the class files?

    For instance, I've important this custom class called MyController, and I don't actually instance it anywhere. I've dragged an object into the document window in IB and set its type to MyController, and it runs fine at runtime and does everything a controller should. Nowhere however do I do something like this:

    Code:
    MyController *newController;
    So, I don't really know what the controller object is called at runtime. Is there any way to find out?

    Cheers,

    Tom
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    You need to setup an IBOutlet in another class and connect it to your controller in the nib.
     

Share This Page