<TTModel> Protocol Reference
TTModel describes the state of an object that can be loaded from a remote source. More...
#import <TTModel.h>
Public Member Functions | |
| (NSMutableArray *) | - delegates |
| An array of objects that conform to the TTModelDelegate protocol. | |
| (BOOL) | - isLoaded |
| Indicates that the data has been loaded. | |
| (BOOL) | - isLoading |
| Indicates that the data is in the process of loading. | |
| (BOOL) | - isLoadingMore |
| Indicates that the data is in the process of loading additional data. | |
| (BOOL) | - isOutdated |
| Indicates that the model is of date and should be reloaded as soon as possible. | |
| (void) | - load:more: |
| Loads the model. | |
| (void) | - cancel |
| Cancels a load that is in progress. | |
| (void) | - invalidate: |
| Invalidates data stored in the cache or optionally erases it. | |
Detailed Description
TTModel describes the state of an object that can be loaded from a remote source.
By implementing this protocol, you can communicate to the user the state of network activity in an object.
Member Function Documentation
| - (void) cancel |
Cancels a load that is in progress.
Default implementation does nothing.
| - (void) invalidate: | (BOOL) | erase |
Invalidates data stored in the cache or optionally erases it.
Default implementation does nothing.
| - (BOOL) isLoaded |
Indicates that the data has been loaded.
Default implementation returns YES.
| - (BOOL) isLoading |
Indicates that the data is in the process of loading.
Default implementation returns NO.
| - (BOOL) isLoadingMore |
Indicates that the data is in the process of loading additional data.
Default implementation returns NO.
| - (BOOL) isOutdated |
Indicates that the model is of date and should be reloaded as soon as possible.
Default implementation returns NO.
| - (void) load: | (TTURLRequestCachePolicy) | cachePolicy | ||
| more: | (BOOL) | more | ||
Loads the model.
Default implementation does nothing.
The documentation for this protocol was generated from the following file:
- Three20Network/Headers/TTModel.h
