PDA

View Full Version : Accessing IB created objects




thomasjt
May 16, 2009, 02:54 AM
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:

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



kainjow
May 16, 2009, 08:58 AM
You need to setup an IBOutlet in another class and connect it to your controller in the nib.