respond

How to verify if a delegate responds to a selector?

Hello, I know I need to write: [delegate respondsToSelector:@selector(myMethod:)] But the compiler is complaining that respondsToSelector is not a method in the protocol, which is correct, However I have seen many sample code use this, how do you do it?. Thank you. -Oscar ...

Connection doesn't respond when beeing set from a new thread

Hi, The connection doesn't respond when beeing set from a new thread: Code 1 (responds fine): [self setConnection]; } - (void)setConnection{ NSLog(@"setting myConnection with request"); myConnection = [[[NSURLConnection alloc]initWithRequest:[NSURLRequest requestWithURL:requestURL] delegate:self] autorelease]; } Log 1: 201...