Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > EOControl Reference

Table of Contents

EOArrayDataSource


Inherits from:
EODataSource : NSObject
Conforms to:
NSCoding
NSObject (NSObject)
Declared in:
EOControl/EOArrayDataSource.h




Class Description


EOArrayDataSource is a concrete subclass of EODataSource that can be used to provide enterprise objects to a display group (EODisplayGroup from EOInterface or WODisplayGroup from WebObjects) without having to fetch them from the database. In an EOArrayDataSource, objects are maintained in an in-memory NSArray.

EOArrayDataSource can fetch, insert, and delete objects-operations it performs directly with its array. It can also provide a detail data source.




Adopted Protocols


NSCoding
- encodeWithCoder:
- initWithCoder:


Instance Methods



initWithClassDescription:editingContext:

- initWithClassDescription:(EOClassDescription *)classDescription editingContext:(EOEditingContext *)editingContext

The designated initializer of the EOArrayDataSource class, this method initializes a newly allocated EOArrayDataSource object with classDescription and editingContext, both of which it retains. classDescription contains information about the objects provided by the EOArrayDataSource and editingContext is the EOArrayDataSource's EOEditingContext. Either argument may be nil. Returns self.

setArray:

- (void)setArray:(NSArray *)array

Sets the receiver's array of objects to array.


Table of Contents