Given the following example
// MyClass.h
@interface MyClass {
NSMutableArray *queue;
}
@property (readonly, retain) NSArray *queue;
@end
and
// MyClass.m
@interface MyClass ()
@property (readwrite, retain) NSMutableArray *queue;
@end
@implementation MyClass
@synthesize queue;
@end
I get a Property 'queue' type in 'MyClass' class continuation does not match class 'MyClass' property
warning from the compiler. What is the best way to add "private" covariant setters to a class without writing them by hand?