Inherits from NSObject
Declared in MOOResourceList.h
MOOResourceList.m

Overview

MOOResourceRegistry registers resource lists that should be cached. After a MOOMaskedIconView renders its mask, it checks with the sharedRegistry to see whether the newly-created mask should go in the cache.

Tasks

Properties

resourceLists

The array of resourceLists tracked by the registry

@property (nonatomic, strong, readonly) NSArray *resourceLists

Declared In

MOOResourceList.h

Class Methods

sharedRegistry

A shared registry.

+ (MOOResourceRegistry *)sharedRegistry

Return Value

A shared registry.

Declared In

MOOResourceList.h

Instance Methods

deregisterList:

Deregisters a resource list from querying by MOOMaskedIconView instances

- (void)deregisterList:(MOOResourceList *)resourceList

Parameters

resourceList

The resource list to deregister

Declared In

MOOResourceList.h

registerList:

Registers a resource list for querying by MOOMaskedIconView instances

- (void)registerList:(MOOResourceList *)resourceList

Parameters

resourceList

The resource list to register

Declared In

MOOResourceList.h

shouldCacheResourceWithKey:

Iterates through the resource list and returns whether the resource with key key should be cached.

- (BOOL)shouldCacheResourceWithKey:(NSString *)key

Parameters

key

The cache key of the queried resource

Return Value

Whether the resource with key key should go into the cache

Declared In

MOOResourceList.h