### CocoaPods Installation Source: https://github.com/jumartin/calendar/blob/master/README.md Installs the CalendarLib library into your iOS project using the CocoaPods dependency manager. Ensure you have CocoaPods set up in your project. ```ruby pod "CalendarLib" ``` -------------------------------- ### OSCache Objective-C API Reference Source: https://github.com/jumartin/calendar/blob/master/Pods/OSCache/README.md Details the properties, methods, and delegate methods available in the OSCache Objective-C class. Includes property descriptions, method signatures, and delegate method functionality for cache eviction control. ```APIDOC OSCache Properties: @property (nonatomic, readonly) NSUInteger count; - The total number of items currently stored in the cache. @property (nonatomic, readonly) totalCost; - The total cost of all items currently stored in the cache; OSCache Methods: - (void)enumerateKeysAndObjectsUsingBlock:(void (^)(id key, id obj, BOOL *stop))block; - Enumerates the keys and values stored in the cache. OSCache Delegate Method: - (BOOL)cache:(OSCache *)cache shouldEvictObject:(id)entry; - Optional delegate method called before an object is evicted. Allows vetoing eviction. - Called only on adding an item or memory warning, not on explicit removal. - Objects are evicted in LRU order. ``` -------------------------------- ### ARC Compatibility Configuration Source: https://github.com/jumartin/calendar/blob/master/Pods/OrderedDictionary/README.md Instructions on how to enable ARC for the OrderedDictionary class in non-ARC projects or how to convert a project to ARC. ```APIDOC OrderedDictionary.m: ARC Requirement: - Requires Automatic Reference Counting (ARC). Usage in Non-ARC Projects: - Add the compiler flag `-fobjc-arc` to OrderedDictionary.m in Build Phases > Compile Sources. Project-Wide ARC Conversion: - Comment out the `#error` line in OrderedDictionary.m. - Use Xcode's Edit > Refactor > Convert to Objective-C ARC... tool. - Ensure OrderedDictionary.m is included in the conversion. ``` -------------------------------- ### OrderedDictionary NSCoding and Property List Support Source: https://github.com/jumartin/calendar/blob/master/Pods/OrderedDictionary/README.md Details the support for NSCoding and property list serialization, ensuring order and mutability are preserved during data archiving and unarchiving. ```APIDOC OrderedDictionary: NSCoding Compliance: - Conforms to NSCoding protocol for archiving and unarchiving. Property List Support: - Supports reading and writing from a property list. - Order and mutability are preserved when serializing to and from property lists. ``` -------------------------------- ### ARC Compatibility Configuration Source: https://github.com/jumartin/calendar/blob/master/Pods/OSCache/README.md Instructions for enabling ARC for OSCache in non-ARC projects or converting the entire project to ARC. This involves compiler flags or Xcode's refactoring tools. ```objective-c // To use OSCache in a non-ARC project: // Add the -fobjc-arc compiler flag to the OSCache.m class. // In Xcode: Build Phases -> Compile Sources -> Double-click OSCache.m -> Add "-fobjc-arc" // To convert your whole project to ARC: // 1. Comment out the #error line in OSCache.m // 2. Use Xcode's Edit > Refactor > Convert to Objective-C ARC... tool. // 3. Ensure OSCache.m is included in the conversion. ``` -------------------------------- ### OrderedDictionary Methods Source: https://github.com/jumartin/calendar/blob/master/Pods/OrderedDictionary/README.md Provides methods for accessing and manipulating ordered dictionaries. Includes methods for retrieving objects by index, replacing objects, and exchanging objects at specified indices. ```APIDOC OrderedDictionary: keyAtIndex:(NSUInteger)index - Returns the key at the specified index. - Parameters: - index: The index of the key to retrieve. - Returns: The key at the specified index. replaceObjectAtIndex:(NSUInteger)index withObject:(id)anObject - Replaces the object at the specified index with a new object. - Parameters: - index: The index of the object to replace. - anObject: The new object to set. setObject:(id)anObject atIndexedSubscript:(NSUInteger)index - Sets an object at a specific index using subscript syntax. - Parameters: - anObject: The object to set. - index: The index at which to set the object. exchangeObjectAtIndex:(NSUInteger)idx1 withObjectAtIndex:(NSUInteger)idx2 - Exchanges the objects at two specified indices. - Parameters: - idx1: The index of the first object. - idx2: The index of the second object. enumerateKeysAndObjectsWithIndexUsingBlock:(void (^)(id key, id obj, NSUInteger idx, BOOL *stop))block - Enumerates through the dictionary's key-value pairs along with their indices using a block. - Parameters: - block: A block that receives the key, object, index, and a stop flag. ``` -------------------------------- ### MutableOrderedDictionary Thread Safety Source: https://github.com/jumartin/calendar/blob/master/Pods/OrderedDictionary/README.md Explains the thread safety considerations for MutableOrderedDictionary instances. Access is not inherently thread safe and requires external synchronization. ```APIDOC MutableOrderedDictionary: Thread Safety: - Access is NOT thread safe. - Ensure no thread attempts to read from the dictionary whilst another is writing to it. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.