With XCode 3 compiler, I could manage an array of objects like:
@interface myView:UIView
{
CALayer *layer[4];
}
@property (nonatomic,retain) CALayer **layer;
@end
@implementation myView
@dynamic layer;
- (CALayer **)layer { return layer; }
// I could then access elements like
- (void) example
{
self.layer[3] = NULL;
}
@end
With XCode 4 compiler the @property declaration generates an error "Property with retain must be an object type".
I guess best way to fix is to convert to NSArray, but I have 100's lines of code using the c-style array subscript (e.g., self.layer[i]). Is there some other way to fix?