I found few codes like this
#SOMECLASS.h
@interface SOMECLASS : SOMESUPERCLASS
@end
#SOMECLASS.m
@implementation SOMECLASS {
NSMutableArray *a;
NSMutableArray *b;
NSMutableArray *c;
BOOL d;
}
@synthesize something;
- (id)init
{
self = [super init];
if (self) {
//something
}
return self;
}
can someone explain me what this actually means ? the @implementation and then ‘{‘ some variable declarations here ‘}’ what does this mean ? what are the scopes of the variables declared in here ?
Those are instance variables declared in the class implementation. See The Objective-C Programming Language for the official documentation.