I made few classes via Core Data. And I need some additional @property
s for one of that classes in runtime. This @property
s are responsible for download progress and I don't want to store them in Core Data DB. I tried to use a separate extension class:
@interface MyClass ()
{
CGFloat _downloadProgress;
NSInteger _downloadErrorCounter;
BOOL _downloadAllStuff;
BOOL _downloadUserCanceled;
}
@property (nonatomic, assign) CGFloat downloadProgress;
@property (nonatomic, assign) NSInteger downloadErrorCounter;
@property (nonatomic, assign) BOOL downloadAllStuff;
@property (nonatomic, assign) BOOL downloadUserCanceled;
@end
But private variables are not visible out of MyClass, and @property
s compile all right, but in runtime i get -[MyClass setDownloadErrorCounter:]: unrecognized selector sent to instance
.
Can anyone suggest me some solution?