Re: Interface builder doesn't show my classes
Re: Interface builder doesn't show my classes
- Subject: Re: Interface builder doesn't show my classes
- From: Thomas Davie <email@hidden>
- Date: Sat, 14 May 2005 14:51:30 +0100
Hello
I've created a simple Hello class in a Hello.m file.
When opening the .nib file I don't get that class in the classes or
instances class.
Further more what's the difference between the classes and
instances tab ? I know what the difference is between a class and
an instance of a class but I can't see why you have both and what's
theire different purpose.
In order to make your classes show up in the classes tab you need to
drag their header file from XCode into IB. The classes and instances
tabs do exactly what you would expect them to – the classes tab shows
you every class you have available to you and allows you to
instantiate/sub-class/etc. them. When you instantiate a class, that
object instance appears on the instances tab. This is an object that
will exist when your nib is loaded - you need do no allocations in
your program, it will be allocated as the nib is loaded. From here,
you can connect up various initial settings for that particular
instance, e.g. connect some of it's variables to bits of your interface.
Bob _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden