Implemented missing functionality for NSPredicate and NSExpression.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25183 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2007-05-23 13:11:55 +00:00
parent 492c861e29
commit db81f051db
4 changed files with 912 additions and 793 deletions

View file

@ -1,3 +1,10 @@
2007-05-23 Fred Kiefer <FredKiefer@gmx.de>
* Headers/Foundation/NSCompoundPredicate.h: Add some common ivars.
* Headers/Foundation/NSExpression.h:Add some common ivar.
* Source/NSPredicate.m: Implement a lot of missing functionality
for the predicate and expression classes. Clean up formatting.
2007-05-16 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/Foundation/NSNetServices.h: fix bug #19872

View file

@ -42,6 +42,10 @@ typedef enum _NSCompoundPredicateType
} NSCompoundPredicateType;
@interface NSCompoundPredicate : NSPredicate
{
NSCompoundPredicateType _type;
NSArray *_subs;
}
+ (NSPredicate *) andPredicateWithSubpredicates: (NSArray *)list;
+ (NSPredicate *) notPredicateWithSubpredicate: (NSPredicate *)predicate;

View file

@ -28,13 +28,15 @@
#if OS_API_VERSION(100400, GS_API_LATEST)
#import <Foundation/NSPredicate.h>
#import <Foundation/NSObject.h>
#if defined(__cplusplus)
extern "C" {
#endif
@class NSArray;
@class NSMutableDictionary;
@class NSString;
typedef enum _NSExpressionType
{
@ -46,6 +48,9 @@ typedef enum _NSExpressionType
} NSExpressionType;
@interface NSExpression : NSObject <NSCoding, NSCopying>
{
NSExpressionType _type;
}
+ (NSExpression *) expressionForConstantValue: (id)obj;
+ (NSExpression *) expressionForEvaluatedObject;

File diff suppressed because it is too large Load diff