Suppose I have the following scenario
// In my .h
@interface TestClass
@end
// In my .m
@interface ()
@end
@implementation TestClass
{
NSString *someVariable;
}
@end
If I convert someVariable
to a property, it will create the propert on the header file.
// In my .h
@interface TestClass
@property (nonatomic, copy) NSString *someVariable
@end
What I would like to know if it is possible is to, instead of adding to the header, add it to the implementation file, in the @interface ()
class extension. Because I don't want these variables to be public.
// In my .m
@interface ()
@property (nonatomic, copy) NSString *someVariable
@end
@implementation TestClass
{
}
@end
Right now, I'm converting to property, going to the header file and copying it to the class extension.
It would be more practical if I could refactor it directly to the class extension.
Thanks