[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
passing address of an object of type id
From: |
Naga C. Krothapalli |
Subject: |
passing address of an object of type id |
Date: |
Wed, 16 Oct 1996 13:21:07 -0400 (EDT) |
Hi everybody,
I created a list of type id just like in heatBugList. Now, I want ot pass
its address to some method. I'm doing it like this.
in *.h file
-----------
id partList;
in *.m file
-----------
-setPartList: (id *)p{
partList=p;
return self;
}
My program is compiling with a warning message "assignment from
incompatible pointer type". Can any one explain it to me. I appreciate
your time. I haven't seen any example in the above format. So, I guess I
messed it up.
-Naga Krothapalli
address@hidden
- passing address of an object of type id,
Naga C. Krothapalli <=