In article <20060224154010492+1000@news.ecn.net.au>,
pf <paulfredlein.RemoveThis@NOSPAMoptusnet.com.au> wrote:
> In <20060224152724369+1000@news.ecn.net.au> pf wrote:
> > Hi,
> >
> > I am trying to implement a panel and have an "AppController" and a
> > "PanelController". So that I can pass a value from the PanelController
> > to the AppController I've made the AppController and outlet of the
> > panelController. (It's probably not the way to do it but I can't think
> > of any other way.)
> >
> > IBOutlet id *appCtrlr;
> >
> > Anyway, it seems to work but I get a warning "invalid receiver type
> > id". What is the correct way to do all this?
> >
> > Any help appreciated, thanks.
> >
> > Paul
> >
>
> Hi,
>
> If I change to "IBOutlet AppController *appCtrlr;" It works without
> complaint. Is this the correct way to do it?
That's the correct way to declare a typed outlet. What was going wrong
with the other technique is that 'id' already is a pointer so the
asterisk was redundant.
Another way to deal with passing a value along, if you're not looking to
be able to repeatedly access a value which may change over time, is to
make it an argument to the panel controller's initializer.
--
"Congurutulation!!!" - The subject line on some spam I received last night.
I have no idea what it means, but it's such a cool "word" (by which I mean
pronouncable sequence of letters) regardless.
>> Stay informed about: Panel problems