From d971299ec8281f2c17d056116dc1b28cfadcdffc Mon Sep 17 00:00:00 2001 From: helge Date: Tue, 23 Aug 2005 00:36:52 +0000 Subject: [PATCH] added NSCopying to EOQualifier git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1065 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-core/EOControl/ChangeLog | 4 ++++ sope-core/EOControl/EOQualifier.h | 2 +- sope-core/EOControl/EOQualifier.m | 7 +++++++ sope-core/EOControl/Version | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/sope-core/EOControl/ChangeLog b/sope-core/EOControl/ChangeLog index 7b65e8d8..1a1fdbc9 100644 --- a/sope-core/EOControl/ChangeLog +++ b/sope-core/EOControl/ChangeLog @@ -1,3 +1,7 @@ +2005-08-23 Helge Hess + + * EOQualifier.m: added NSCopying (v4.5.60) + 2005-08-06 Helge Hess * EOKeyValueArchiver.m: improved decoding of bools (v4.5.59) diff --git a/sope-core/EOControl/EOQualifier.h b/sope-core/EOControl/EOQualifier.h index de5f12a3..00ce8448 100644 --- a/sope-core/EOControl/EOQualifier.h +++ b/sope-core/EOControl/EOQualifier.h @@ -54,7 +54,7 @@ - (BOOL)evaluateWithObject:(id)_object; @end -@interface EOQualifier : NSObject < EOKeyValueArchiving > +@interface EOQualifier : NSObject < NSCopying, EOKeyValueArchiving > + (EOQualifier *)qualifierToMatchAnyValue:(NSDictionary *)_values; + (EOQualifier *)qualifierToMatchAllValues:(NSDictionary *)_values; diff --git a/sope-core/EOControl/EOQualifier.m b/sope-core/EOControl/EOQualifier.m index 23c96daf..6b7c6874 100644 --- a/sope-core/EOControl/EOQualifier.m +++ b/sope-core/EOControl/EOQualifier.m @@ -258,4 +258,11 @@ static EONull *null = nil; - (void)encodeWithKeyValueArchiver:(EOKeyValueArchiver *)_archiver { } +/* NSCopying */ + +- (id)copyWithZone:(NSZone *)_zone { + /* EOQualifiers are supposed to be immutable */ + return [self retain]; +} + @end /* EOQualifier */ diff --git a/sope-core/EOControl/Version b/sope-core/EOControl/Version index de3d3ecd..7fbe8ee1 100644 --- a/sope-core/EOControl/Version +++ b/sope-core/EOControl/Version @@ -1,3 +1,3 @@ # version file -SUBMINOR_VERSION:=59 +SUBMINOR_VERSION:=60 -- 2.39.5