Oolite
Loading...
Searching...
No Matches
OOCache(Private) Category Reference

Instance Methods

(void) - loadFromArray:
 

Detailed Description

Definition at line 187 of file OOCache.m.

Method Documentation

◆ loadFromArray:

- (void) loadFromArray: (NSArray *)  inArray

Definition at line 152 of file OOCache.m.

391 :(NSArray *)array
392{
393 NSDictionary *entry = nil;
394 NSString *key = nil;
395 id value = nil;
396
397 if (array == nil) return;
398
399 foreach (entry, array)
400 {
401 if ([entry isKindOfClass:[NSDictionary class]])
402 {
403 key = [entry objectForKey:kSerializedEntryKeyKey];
404 value = [entry objectForKey:kSerializedEntryKeyValue];
405 if ([key isKindOfClass:[NSString class]] && value != nil)
406 {
407 [self setObject:value forKey:key];
408 }
409 }
410 }
411}
return nil

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