I'm defining an Objective-C class:
@interface MyRequest : NSObject
@property (strong, nonatomic, readonly) NSDecimalNumber *myNumber;
@property (strong, nonatomic, readonly) CommConfig *commConfig;
@property (nonatomic, assign, readonly) BOOL debug;
How do I make commConfig
a static variable? When I use the 'class' keyword, the compiler gives me the following warning:
Class property 'commConfig' requires method 'commConfig' to be defined - use @dynamic or provide a method implementation in this class implementation
And the constructor doesn't recognize this line anymore:
_commConfig = commConfig