Please help with this......is this possible
Code:
-(void)someFunction
{
NSOperationQueue *queue = [NSOperationQueue new];
NSInvocationOperation *operation1 = [[NSInvocationOperation alloc] initWithTarget:self
selector:@selector(loadframe) object:nil];
[queue addOperation:operation1];
[operation1 release];
[queue release];
//Use the value which has been returned from the thread
}
-(NSString *)loadframe{
return @"Test";
}