Inherits from NSMutableDictionary
Declared in RKOrderedDictionary.h
RKOrderedDictionary.m

Overview

The RKOrderedDictionary class declares the programmatic interface to objects that manage mutable associations of keys and values wherein the keys have a specific order. It adds ordered key modification operations to the basic operations it inherits from NSMutableDictionary.

Tasks

Instance Methods

insertObject:forKey:atIndex:

Inserts an object into the dictionary for a given key at a specific index.

- (void)insertObject:(id)anObject forKey:(id)aKey atIndex:(NSUInteger)anIndex

Parameters

anObject

The object to add the dictionary.

aKey

The key to store the value under.

anIndex

The index in the dictionary at which to insert aKey.

Declared In

RKOrderedDictionary.h

keyAtIndex:

Returns the key within the dictionary at a given index.

- (id)keyAtIndex:(NSUInteger)anIndex

Parameters

anIndex

An index within the bounds of the array keys.

Return Value

The key that appears at the given index.

Declared In

RKOrderedDictionary.h

reverseKeyEnumerator

Returns an enumerator object that lets you access each key in the dictionary, in reverse order.

- (NSEnumerator *)reverseKeyEnumerator

Return Value

An enumerator object that lets you access each key in the dictionary in reverse order.

Declared In

RKOrderedDictionary.h