MOOResourceRegistry Class Reference
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
-
resourceLists
The array of resourceLists tracked by the registry
property -
– registerList:
Registers a resource list for querying by MOOMaskedIconView instances
-
– deregisterList:
Deregisters a resource list from querying by MOOMaskedIconView instances
-
– shouldCacheResourceWithKey:
Iterates through the resource list and returns whether the resource with key
key
should be cached. -
+ sharedRegistry
A shared registry.
Instance Methods
deregisterList:
Deregisters a resource list from querying by MOOMaskedIconView instances
- (void)deregisterList:(MOOResourceList *)resourceList
Parameters
- resourceList
The resource list to deregister
See Also
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
See Also
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