Oolite 1.91.0.7645-241119-222d325
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]
 
- Instance Methods inherited from <OOAsyncWorkTask>

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.

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

◆ dealloc

- (void) dealloc
implementation

Definition at line 114 of file OOCacheManager.m.

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

◆ initWithCacheContents:

- (id) initWithCacheContents: (NSDictionary *) cacheContents

Definition at line 114 of file OOCacheManager.m.

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

◆ performAsyncTask

- (void) performAsyncTask
implementation

Reimplemented from <OOAsyncWorkTask>.

Definition at line 114 of file OOCacheManager.m.

733{
734 if ([[OOCacheManager sharedCache] writeDict:_cacheContents])
735 {
736 OOLog(kOOLogDataCacheWriteSuccess, @"%@", @"Wrote data cache.");
737 }
738 else
739 {
740 OOLog(kOOLogDataCacheWriteFailed, @"%@", @"Failed to write data cache.");
741 }
743}
744
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: