projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement equality checks for Targets. Don't consider equal targets as conflicting...
[enjoyable.git]
/
Target.m
diff --git
a/Target.m
b/Target.m
index
700a151
..
493f94a
100644
(file)
--- a/
Target.m
+++ b/
Target.m
@@
-28,6
+28,15
@@
return nil;
}
return nil;
}
+- (BOOL)isEqual:(id)object {
+ return [object isKindOfClass:Target.class]
+ && [[self serialize] isEqual:[object serialize]];
+}
+
+- (NSUInteger)hash {
+ return [[self serialize] hash];
+}
+
+ (Target *)targetDeserialize:(NSDictionary *)serialization
withConfigs:(NSArray *)configs {
// Don't crash loading old configs (but don't load them either).
+ (Target *)targetDeserialize:(NSDictionary *)serialization
withConfigs:(NSArray *)configs {
// Don't crash loading old configs (but don't load them either).