From ea7b7b8821838e8064d21e234f0c4dcf7e2201e9 Mon Sep 17 00:00:00 2001 From: mguesdon Date: Wed, 1 Sep 2004 13:57:56 +0000 Subject: [PATCH] o added -addQueryOperator:forKey: git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19950 72102866-910b-0410-8b05-ffd578937521 --- GSWeb.framework/GSWDisplayGroup.h | 2 ++ GSWeb.framework/GSWDisplayGroup.m | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/GSWeb.framework/GSWDisplayGroup.h b/GSWeb.framework/GSWDisplayGroup.h index 4808943..b8dafd0 100644 --- a/GSWeb.framework/GSWDisplayGroup.h +++ b/GSWeb.framework/GSWDisplayGroup.h @@ -238,6 +238,8 @@ - (void)setInQueryMode:(BOOL)flag; - (void)setInsertedObjectDefaultValues:(NSDictionary *)defaultValues; - (void)setQueryOperator:(NSDictionary*)qo; +- (void)addQueryOperator:(NSString*)value + forKey:(NSString*)operatorKey; - (void)setQueryKeyValueQualifierClassName:(NSDictionary*)qo; - (void)setLocalKeys:(NSArray *)keys; - (void)setMasterObject:(id)masterObject; diff --git a/GSWeb.framework/GSWDisplayGroup.m b/GSWeb.framework/GSWDisplayGroup.m index 99bea0b..7a47f37 100644 --- a/GSWeb.framework/GSWDisplayGroup.m +++ b/GSWeb.framework/GSWDisplayGroup.m @@ -962,7 +962,7 @@ static BOOL globalDefaultForValidatesChangesImmediately = NO; -(id)displayBatchContainingSelectedObject { int newBatchIndex = 1; - int selectionIndex; + int selectionIndex = 0; LOGObjectFnStart(); @@ -2067,6 +2067,16 @@ of all Batches, not only the current one. [_queryOperator addEntriesFromDictionary:qo]; }; +//-------------------------------------------------------------------- +/** add a query operator **/ +- (void)addQueryOperator:(NSString*)value + forKey:(NSString*)operatorKey +{ + [_queryOperator setObject:value + forKey:operatorKey]; +}; + +//-------------------------------------------------------------------- -(void)setQueryKeyValueQualifierClassName:(NSDictionary*)qo { NSAssert1((!qo || [qo isKindOfClass:[NSDictionary class]]), @@ -2467,7 +2477,7 @@ of all Batches, not only the current one. LOGObjectFnStart(); if(_dataSource) { - EOEditingContext* editingContext; + EOEditingContext* editingContext = nil; // Set flags to detect customer dataSource _flags.isCustomDataSourceClass = [self _isCustomDataSourceClass:[_dataSource class]];