2010-12-02 4 views
0

Lib xml 파서에 문제가 하나 있습니다.Lib xml 대리자 선택기가 작동하지 않습니다.

최종 문서에서 아래의 코드는 내가 위의 코드에서 오류가 발생한 상태에서 주석 여기

-(void)endDocument 
{ 
    NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Failed with 404 or 500" 
                   forKey:@"error_message"]; 
      NSError *error = [NSError errorWithDomain:@"ParsingDomain" 
               code:500 
              userInfo:userInfo]; 

      SEL selector = @selector(parse:encounteredError: forId: forObj:); 
      NSMethodSignature *sig = [(id)self.delegate methodSignatureForSelector:selector]; 
      if(nil != sig && [self.delegate respondsToSelector:selector]) // this codition is failed 
      { 
       printf("\n In the selector invocation"); 
       NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:sig]; 
       [invocation retainArguments]; 
       [invocation setTarget:self.delegate]; 
       [invocation setSelector:selector]; 
       [invocation setArgument:&self atIndex:2]; 
       [invocation setArgument:&error atIndex:3]; 
       [invocation setArgument:&Id atIndex:4]; 
       [invocation setArgument:&obj atIndex:5]; 
       [invocation performSelectorOnMainThread:@selector(invoke) withObject:NULL waitUntilDone:NO]; 
      } 
    } 

입니다.

고맙습니다. Madan mohan. encounteredError : FORID :

답변

2

내가 거기에 생각이 라인

SEL 선택 = @selector (구문 분석에서 맞춤법 실수 검사입니다 forObj :); 대신

구문 분석! 건배의

사용 파서!

관련 문제