Developer Area

Changeset 631

Show
Ignore:
Timestamp:
01/11/10 19:45:59 (4 years ago)
Author:
henri
Message:

Better error checking

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • apps/iphone/my.tel/trunk/Classes/API Classes/JsonConnection.m

    r626 r631  
    200200} 
    201201 
    202 - (void)connectionDidFinishLoading:(NSURLConnection*)connection { 
    203 #ifdef JSONDEBUG 
    204     NSLog(@"Response payload: %@", responsePayload); 
     202- (void)connectionDidFinishLoading:(NSURLConnection *)connection { 
     203#ifdef JSONDEBUG 
     204        NSLog(@"Connection is: %@", [connection description]); 
     205//    NSLog(@"Response payload: %@", responsePayload); 
    205206#endif 
    206207    [self parsePayload]; 
     
    226227        }                
    227228#endif 
    228     [theDelegate performSelector:actionSel withObject:parsedJSON]; 
     229        if (theDelegate && [theDelegate respondsToSelector:actionSel]) { 
     230                [theDelegate performSelector:actionSel withObject:parsedJSON]; 
     231        } 
    229232} 
    230233 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us