Skip to content

Instantly share code, notes, and snippets.

@sixten
Created June 14, 2011 17:11
Show Gist options
  • Save sixten/1025367 to your computer and use it in GitHub Desktop.
Save sixten/1025367 to your computer and use it in GitHub Desktop.
Comparison of RDLinkedInResponseParser.m between rhaining's branch and unstable
***
---
***************
*** 5,16 ****
--- 5,17 ----
// Created by Sixten Otto on 12/30/09.
// Copyright 2010 Results Direct. All rights reserved.
//
#import "RDLinkedInResponseParser.h"
#import "RDLinkedInHTTPURLConnection.h"
+ #import "RDLogging.h"
NSString *const RDLinkedInResponseParserDomain = @"RDLinkedInResponseParserDomain";
NSString *const RDLinkedInResponseParserURLKey = @"RDLinkedInResponseParserURLKey";
@implementation RDLinkedInResponseParser
***************
*** 25,37 ****
[parser release];
return success;
}
- (id)initWithXML:(NSData *)xml connection:(RDLinkedInHTTPURLConnection *)connection {
! if( self = [super init] ) {
rdXML = [xml retain];
rdConnection = [connection retain];
}
return self;
}
--- 26,39 ----
[parser release];
return success;
}
- (id)initWithXML:(NSData *)xml connection:(RDLinkedInHTTPURLConnection *)connection {
! self = [super init];
! if( self != nil ) {
rdXML = [xml retain];
rdConnection = [connection retain];
}
return self;
}
***************
*** 56,68 ****
int result = xmlTextReaderRead(rdReader);
if( result == -1 ) {
xmlErrorPtr err = xmlGetLastError();
if( err ) {
! NSLog(@"libxml error level %i: %s", err->level, err->message);
// TODO: set rdError properly
rdError = [[self genericError] retain];
}
else {
rdError = [[self genericError] retain];
}
--- 58,70 ----
int result = xmlTextReaderRead(rdReader);
if( result == -1 ) {
xmlErrorPtr err = xmlGetLastError();
if( err ) {
! RDLOG(@"libxml error level %i: %s", err->level, err->message);
// TODO: set rdError properly
rdError = [[self genericError] retain];
}
else {
rdError = [[self genericError] retain];
}
***************
*** 196,199 ****
--- 194,197 ----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment