I wanna call some B's method from A.
- (IBAction) callmethod:(id)sender
A *a_method = [[A init] alloc];
[a_method performSelector: @selector(b_method) withObject: nil afterDelay: 2.0];
NSLog(@"b_method was called");
NSNetService * rs = [service objectAtIndex:0];
rs.delegate = self;
after it should calling onSocket
-(void)onSocket:(AsyncSocket *)sock didConnectToHost:(NSString *)host port:(UInt16)port
NSLog(@"did connect to host");
but i've not result, i have just 'b_method was called' this method was not called
but if i'll add IBAction's method to B class:
then i have 'did conntct to host in debug mode'