Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to import a class from PB to IB



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


References: 
 >how to import a class from PB to IB (From: Reuss <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.