Re: how to import a class from PB to IB
Re: how to import a class from PB to IB
- Subject: Re: how to import a class from PB to IB
- From: Charles Bennett <email@hidden>
- Date: Wed, 31 Oct 2001 10:30:28 -0500
Sure, First you must declare the NSMutableArray
like this in youor MyClass.h
@interface MyClass: NSObject
{
IBOutlet id myMutableArray;
}
Then in IB click on the classes tab, select someting like NSObject
and up in the menu click on "Read Files"
at that point you can select the MyClass and import it.
Now IB "knows" about MyCLass.
Click in the MyClass line that now shows up under NSObject in IB
now go back to the Classes Menu in IB and click "Instantiate MyClass"
back under the instances tab you will now have a "cube" of type MyClass that
you can connect to.
done.
chuck
Reuss wrote:
>
>
Hello,
>
>
Another newbie question (sorry) :
>
>
I defined a class in PB (called "MySettings") which contains a
>
MSMutableArray. I would like to link this Array to a TableView item
>
in the UI window. Normally I have to make a connection from the
>
TableView to the instance of the class in IB. Unfortunately I don't
>
have MySettings as a class in IB.
>
>
Is it possible to import this class from PB into IB ?
>
>
Unless, how can I connect the TableView with the NSMutableArray ?
>
>
Thank cou for your ideas
>
>
Tom
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev