Skip to content

Instantly share code, notes, and snippets.

@nickfox
Created September 14, 2013 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickfox/6558830 to your computer and use it in GitHub Desktop.
Save nickfox/6558830 to your computer and use it in GitHub Desktop.
@implementation AreaViewControllerElement
-(id)init
{
if (self = [super init])
{
_objectID = -1;
_name = @"";
_address1 = @"";
_address2 = @"";
_diversionRate = 0;
_location = nil;
_distance = 0.0f;
}
return self;
}
-(id)copyWithZone:(NSZone *)zone
{
AreaViewControllerElement *element = [[AreaViewControllerElement alloc] init];
element.objectID = self.objectID;
element.name = [self.name copy];
element.address1 = [self.address1 copy];
element.address2 = [self.address2 copy];
element.diversionRate = self.diversionRate;
element.location = [self.location copy];
element.distance = self.distance;
return element;
}
@end
*************************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment