How can I invoke a method in a class only after verifying a condition in another method of another class in my iPhone app?
Any ideas?
Thanks, Andrea
edit 3
//class1
//Class1.m
@implementation Class1 {
....
[class2 method1:@"file1.xml"];
[class2 method1:@"file2.xml"];
[class2 method1:@"file3.xml"];
}
….
@end
//class2
#import "Class1.h"
@implementation Class2{
-(void) method1(NSString *)file{
[self method2];
}
-(void) method2{
//when finish that method I have to call the successive method [class2 method1:@"file2.xml"]; in class1
}
}
hope this help to understand (even better) the problem...