doc
 All Classes Functions Variables Properties
Public Member Functions | Properties
<EMPageableDataSource> Protocol Reference

Inherited by EMArrayDataSource, and <EMSearchQueryDataSource>.

List of all members.

Public Member Functions

(id) - objectAtIndex:
(void) - loadObjectsFromIndex:toIndex:cachePolicy:
(BOOL) - isObjectsLoadedFromIndex:toIndex:

Properties

NSMutableArray * delegates
NSInteger numberOfObjects
NSInteger maxObjectIndex
Class recordType
NSString * title

Member Function Documentation

- (BOOL) isObjectsLoadedFromIndex: (NSInteger)  fromIndex
toIndex: (NSInteger)  toIndex 

If objects are loaded out of sequence (1-10, then 31-40, then 11-20, then 22-30), the maxObjectIndex will not be enough to determine whether loadObjectsFromIndex:toIndex:cachePolicy should get called

- (void) loadObjectsFromIndex: (NSInteger)  fromIndex
toIndex: (NSInteger)  toIndex
cachePolicy: (TTURLRequestCachePolicy)  cachePolicy 

Loads a range of objects asynchronously.

Parameters:
fromIndexThe starting index.
toIndexThe ending index, or -1 to load the remainder of photos.

Property Documentation

- (NSMutableArray*) delegates [read, assign]

An array of EMPageableDataSourceDelegate objects

- (NSInteger) maxObjectIndex [read, assign]

The maximum index of objects that have already been loaded.

- (NSInteger) numberOfObjects [read, assign]

The total number of objects in the source, independent of the number that have been loaded.

- (Class) recordType [read, write, assign]

The record type to return records as. Implementing classes should enforce that this type is or is a child of EMRecord

- (NSString*) title [read, optional, assign]

The title of the datasource


The documentation for this protocol was generated from the following file: