This is the simplified version of my problem:
.h
.m
The NSLog in method1 is called before the string is able to change in the request method. The only way i know of to make sure this happens in order is to set up a delay, but that isn't ideal or consistant.
Thanks
.h
Code:
NSString *string;
@property ....
.m
Code:
@synthesize string;
- (void)method1 {
//Call requester method
NSLog(string);
}
- (void)request:(Requester*)request didLoad:(id)result {
string = @"changed string";
}
The NSLog in method1 is called before the string is able to change in the request method. The only way i know of to make sure this happens in order is to set up a delay, but that isn't ideal or consistant.
Thanks