/* Variable declared in @interface of .m file */
@interface ClassA () {
NSMutableArray *mDocuments;
}
/* Variable declared in @implementation of .m file */
@implementation ClassA () {
NSMutableArray *mDocuments;
}
/* Variable declared in @interface of .m file */
@interface ClassA () {
NSMutableArray *mDocuments;
}
/* Variable declared in @implementation of .m file */
@implementation ClassA () {
NSMutableArray *mDocuments;
}
Declaring a variable in @interface
is so it can be seen by other files, so a public
declaration.
Declaring a variable in @implementation
is private
to the file.
See this thread for more in-depth: Private ivar in @interface or @implementation