I have an ObjC object defined as follows
@interface Fruit : NSObject
{
int fruitsinbranch[4];
}
@property (readonly) int fruitsinbranch[4];
@end
And then in the implementations I have the usual
@synthesize fruitsinbranch[4];
It does not work. What's the right way of doing it?
(And no, I am not asking for other ways to do stuff, like NSArray etc... I want an answer to the question I posed).
UPDATE: my solution is lame but it works. I created the method
-(int) fruitsinbranch:(int) i
That gave a solution close enough to what I wanted.