Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Panel problems

 
   Macintosh computer (Home) -> General Discussion RSS
Next:  How can I send an email?  
Author Message
pf

External


Since: Nov 27, 2005
Posts: 18



(Msg. 1) Posted: Fri Feb 24, 2006 1:55 am
Post subject: Panel problems
Archived from groups: comp>sys>mac>programmer>misc (more info?)

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

 >> Stay informed about: Panel problems 
Back to top
Login to vote
pf

External


Since: Nov 27, 2005
Posts: 18



(Msg. 2) Posted: Fri Feb 24, 2006 1:55 am
Post subject: Re: Panel problems [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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?

Thanks,

Paul

 >> Stay informed about: Panel problems 
Back to top
Login to vote
Gregory Weston1

External


Since: Oct 03, 2004
Posts: 2984



(Msg. 3) Posted: Fri Feb 24, 2006 6:00 am
Post subject: Re: Panel problems [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> General Discussion All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]