Oolite
Loading...
Searching...
No Matches
OOAsyncCacheWriter Class Reference
+ Inheritance diagram for OOAsyncCacheWriter:
+ Collaboration diagram for OOAsyncCacheWriter:

Instance Methods

(id) - initWithCacheContents:
 
(void) - dealloc [implementation]
 
(void) - performAsyncTask [implementation]
 
(void) - completeAsyncTask [implementation]
 

Private Attributes

NSDictionary * _cacheContents
 

Detailed Description

Definition at line 110 of file OOCacheManager.m.

Method Documentation

◆ completeAsyncTask

- (void) completeAsyncTask
implementation

Reimplemented from <OOAsyncWorkTask>.

Definition at line 114 of file OOCacheManager.m.

746{
747 // Don't need to do anything, but this needs to be here so we can wait on it.
748}
749

◆ dealloc

- (void) dealloc
implementation

Definition at line 114 of file OOCacheManager.m.

724{
726
727 [super dealloc];
728}
729
#define DESTROY(x)
Definition OOCocoa.h:75
NSDictionary * _cacheContents

◆ initWithCacheContents:

- (id) initWithCacheContents: (NSDictionary *)  cacheContents

Definition at line 114 of file OOCacheManager.m.

708{
709 if ((self = [super init]))
710 {
711 _cacheContents = [cacheContents copy];
712 if (_cacheContents == nil)
713 {
714 [self release];
715 self = nil;
716 }
717 }
718
719 return self;
720}
721
return nil

◆ performAsyncTask

- (void) performAsyncTask
implementation

Reimplemented from <OOAsyncWorkTask>.

Definition at line 114 of file OOCacheManager.m.

732{
733 if ([[OOCacheManager sharedCache] writeDict:_cacheContents])
734 {
735 OOLog(kOOLogDataCacheWriteSuccess, @"%@", @"Wrote data cache.");
736 }
737 else
738 {
739 OOLog(kOOLogDataCacheWriteFailed, @"%@", @"Failed to write data cache.");
740 }
742}
743
static NSString *const kOOLogDataCacheWriteSuccess
static NSString *const kOOLogDataCacheWriteFailed
#define OOLog(class, format,...)
Definition OOLogging.h:88

Member Data Documentation

◆ _cacheContents

- (NSDictionary*) _cacheContents
private

Definition at line 114 of file OOCacheManager.m.


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