• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to import a class from PB to IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: how to import a class from PB to IB
  • Next by Date: Re: Screensaver multiple monitor detect
  • Previous by thread: how to import a class from PB to IB
  • Next by thread: Launching a Cocoa app via telnet problem
  • Index(es):
    • Date
    • Thread