You need to cast the object. apeopleList.objectAtIndex(0) returns an
Object. you need to do (apeople)apeopleList.objectAtIndex(0).
setApeople((apeople)apeopleList.objectAtIndex(0))
On Sep 21, 2004, at 7:54 AM, Christian Telepski wrote:
Hi,
i have some strange problems and i think it should be easy solved.
I have an entity of "apeople" in the database and an NSMutableArray
wich stores all those "apeople".
This is "apeopleList".
Now i wanted to pass "apeopleList.objectAtIndex(0)" to the "apeople"
with "setApeople(apeopleList.objectAtIndex(0))" but this does not
work!
The error is: "setApeople(apeople) cannot be applied to
(java.lang.Object)"