Library
Instance Methods | Class Methods | Properties | List of all members
ISODocumentListDataSource Class Reference
Inheritance diagram for ISODocumentListDataSource:

Instance Methods

(int) - numberOfRows
 
(ISODocument *) - objectAtIndex:
 
(NSArray *) - allDocuments
 
(NSArray *) - allDocumentsWithDocumentId:andExternalId:
 
(void) - sortDescriptorsChanged:
 
(void) - reload
 

Class Methods

(ISODocumentListDataSource *) + sharedDocumentListDataSource
 

Properties

id< ISODocumentListDataSourceDelegatedelegate
 
NSFetchedResultsController * fetchedResultsController
 

Method Documentation

- (NSArray *) allDocuments

returns all documents after the number of rows (method numberOfRows)

- (NSArray *) allDocumentsWithDocumentId: (NSString*)  documentId
andExternalId: (NSString*)  externalId 

method returns all documents after checking the document ID

- (int) numberOfRows

Return the number of rows in the section.

- (ISODocument *) objectAtIndex: (int)  index

supply the object ISODocument from the passed index back

- (void) reload

Reload the rows.

+ (ISODocumentListDataSource *) sharedDocumentListDataSource

return object from type ISODocumentListDataSource. if there is no object, the method create a new one

Returns
object from type ISODocumentListDataSource
- (void) sortDescriptorsChanged: (NSArray*)  newDescriptors

the following lines are needed, because just changing the sort order (and leaving the key at it's old value) doesn't persuade the fetchedResultsController to re-sort

Property Documentation

- (NSFetchedResultsController *) fetchedResultsController
readwritenonatomicretain

You use a fetched results controller to efficiently manage the results returned from a Core Data fetch request to provide data for a UITableView object. The Method don't display documents with 0 pages. also update to handle the error apprpriately.

Returns
the result what the method fetch from the controller

The documentation for this class was generated from the following files: