//MainClass.m @interface InnerClass : NSObject{ } @end @implementation InnerClass -(void)run{ while(isActive){//want to access this variable which d
Objective-C doesn't have inner classes. Consider making isActive a property of MainClass, give InnerClass a pointer to an instance of MainClass, and let InnerClass simply access the property.