Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (32 sloc) 1.094 kb
//
// ORSFilter.m
// Canary
//
// Created by Nicholas Toumpelis on 12/04/2009.
// Copyright 2009 Ocean Road Software. All rights reserved.
//
// Version 0.7
#import "ORSFilter.h"
@implementation ORSFilter
@synthesize predicate, filterName, active;
// Copy with zone
- (id) copyWithZone:(NSZone *)zone {
ORSFilter *copyOfCurrentFilter = [[ORSFilter alloc] init];
copyOfCurrentFilter.active = self.active;
copyOfCurrentFilter.predicate = [self.predicate copy];
copyOfCurrentFilter.filterName = [self.filterName copy];
return copyOfCurrentFilter;
}
- (void) encodeWithCoder:(NSCoder *)coder {
[coder encodeBool:active forKey:@"ORSCanaryFilterActive"];
[coder encodeObject:filterName forKey:@"ORSCanaryFilterName"];
[coder encodeObject:predicate forKey:@"ORSCanaryFilterPredicate"];
}
- (id) initWithCoder:(NSCoder *)coder {
self = [super init];
active = [coder decodeBoolForKey:@"ORSCanaryFilterActive"];
filterName = [coder decodeObjectForKey:@"ORSCanaryFilterName"];
predicate = [coder decodeObjectForKey:@"ORSCanaryFilterPredicate"];
return self;
}
@end
Jump to Line
Something went wrong with that request. Please try again.