method returning wrong variable
- by cocoanewbie
This class I'm working with has three instance variables I'm interested in, NSmutablearrays xArray yArray and zArray, there are also other NSmutablearrays, a, bArray and c.
I just added accessors
- (NSMutableArray *) xArray {
return xArray;
}
ditto for y and z.
However, it's returning yArray, zArray and bArray for some reason.
Why is that…