Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:MugunthKumar/MKNetworkKit
Browse files Browse the repository at this point in the history
  • Loading branch information
MugunthKumar committed Jul 14, 2012
2 parents d204641 + 4672036 commit 9b9bcd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MKNetworkKit/MKNetworkOperation.m
Expand Up @@ -376,6 +376,8 @@ -(void) setState:(MKNetworkOperationState)newState {
- (void)encodeWithCoder:(NSCoder *)encoder
{
[encoder encodeInteger:self.stringEncoding forKey:@"stringEncoding"];
[encoder encodeInteger:_postDataEncoding forKey:@"postDataEncoding"];

[encoder encodeObject:self.uniqueId forKey:@"uniqueId"];
[encoder encodeObject:self.request forKey:@"request"];
[encoder encodeObject:self.response forKey:@"response"];
Expand All @@ -401,6 +403,7 @@ - (id)initWithCoder:(NSCoder *)decoder
self = [super init];
if (self) {
[self setStringEncoding:[decoder decodeIntegerForKey:@"stringEncoding"]];
_postDataEncoding = [decoder decodeIntegerForKey:@"postDataEncoding"];
self.request = [decoder decodeObjectForKey:@"request"];
self.uniqueId = [decoder decodeObjectForKey:@"uniqueId"];

Expand All @@ -426,6 +429,7 @@ - (id)copyWithZone:(NSZone *)zone
{
MKNetworkOperation *theCopy = [[[self class] allocWithZone:zone] init]; // use designated initializer

theCopy.postDataEncoding = _postDataEncoding;
[theCopy setStringEncoding:self.stringEncoding];
[theCopy setUniqueId:[self.uniqueId copy]];

Expand Down

0 comments on commit 9b9bcd2

Please sign in to comment.