swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing pointers to classes


From: Ken Cline
Subject: Re: passing pointers to classes
Date: Mon, 4 Aug 1997 15:00:19 -0400 (EDT)

Could you clear some things?

On Mon, 4 Aug 1997, Steve Emsley wrote:

> Trouble is that I get the following error:
> POModel.m:665: warning: cannot find method.
> POModel.m:665: warning: return type for `getLightSpace' defaults to id

What is on line 665 of POModel.m?

Where is `getLightSpace' defined and how is it used?

This error is indicative of using a function before its been
declared.  The compiler is warning that this method needs to
be supplied somewhere and if it can't be found at runtime
then the app will probably core dump.


> When I print the id for lightSpace and theLightSwarm, which should be the
> same, I get different answers.

You set lightModel = theLightSpace, right? That is:
             ^^^^^

   -(void)setLightModel: (id) l { 
       lightModel = l; 
       return ; 
   }


What is this lightSpace?  Was this a typo?
                  ^^^^^

My apologies if I misunderstood what you had written.

Ken.

_________________________________________________________
Ken Cline                             address@hidden
SAIC                                 VOICE (410) 571-0413
Annapolis, MD                          FAX (301) 261-8427



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]