I would like to use MBProgressHUD with…
[HUD showWhileExecuting:@selector(fetchDomainStatus) onTarget:self withObject:nil animated:YES];
but I need to call a method (fetchDomainStatus) that returns the domainStatus (an int).
How can I do that without somekind of class variable?
If you can use blocks (i.e., your app is iOS 4.0+) you can do something like this, and still have all threading magic preserved: