diff --git a/SQLClient.h b/SQLClient.h index 60beff8..28a0ade 100644 --- a/SQLClient.h +++ b/SQLClient.h @@ -1281,10 +1281,11 @@ SQLCLIENT_PRIVATE *

The ltype argument specifies an object to be used to create objects to * store the records produced by the query.
* The should be a subclass of NSMutableArray. It must at least - * implement the [NSObject+alloc] method to create an instnce to store + * implement the [NSObject+alloc] method to create an instance to store * records. The instance must implement [NSMutableArray-initWithCapacity:] - * to initialise itsself and [NSMutableArray-addObject:] to allow the - * backend to add records to it.
+ * to initialise itsself, [NSMutableArray-addObject:] to allow the + * backend to add records to it, and -count to return the number of records + * added.
* For caching to work, it must be possible to make a mutable copy of the * instance using the mutableCopy method. *

@@ -1633,8 +1634,9 @@ SQLCLIENT_PRIVATE * If rtype is nil then the [SQLRecord] class is used.
* The value of ltype must respond to the [NSObject+alloc] method to produce * a container which must repond to the [NSMutableArray-initWithCapacity:] - * method to initialise itsself and the [NSMutableArray-addObject:] method - * to add records to the list.
+ * method to initialise itsself, the [NSMutableArray-addObject:] method + * to add records to the list, and the [NSMutableArray-count] method to + * return the number of records added.
* If ltype is nil then the [NSMutableArray] class is used.
* The list produced by this argument is used as the return value of * this method.
diff --git a/SQLClient.m b/SQLClient.m index 8134c62..5095575 100644 --- a/SQLClient.m +++ b/SQLClient.m @@ -4622,6 +4622,11 @@ validName(NSString *name) return content; } +- (NSUInteger) count +{ + return [content count]; +} + - (void) dealloc { [content release]; @@ -4678,6 +4683,11 @@ validName(NSString *name) return content; } +- (NSUInteger) count +{ + return [content count]; +} + - (void) dealloc { [content release];