Definition at line 28 of file OrderedDictionary.h.
◆ indexForKey:
| - (NSUInteger) indexForKey: |
|
(id) |
key |
|
Definition at line 28 of file OrderedDictionary.m.
136 :(id)key
137{
138 return [array indexOfObject:key];
139}
◆ indexForValue:
| - (NSUInteger) indexForValue: |
|
(id) |
value |
|
Definition at line 28 of file OrderedDictionary.m.
141 :(id)value
142{
143 NSArray *keys = [self allKeysForObject:value];
144 if ([keys count] > 0)
145 {
146 return [self indexForKey:[keys objectAtIndex:0]];
147 }
148
149 return NSNotFound;
150}
◆ insertObject:forKey:atIndex:
| - (void) insertObject: |
|
(id) |
anObject |
| forKey: |
|
(id) |
aKey |
| atIndex: |
|
(NSUInteger) |
anIndex |
|
|
| |
Definition at line 28 of file OrderedDictionary.m.
121 :(id)anObject forKey:(id)aKey atIndex:(NSUInteger)anIndex
122{
123 if ([dictionary objectForKey:aKey])
124 {
125 [self removeObjectForKey:aKey];
126 }
127 [array insertObject:aKey atIndex:anIndex];
128 [dictionary setObject:anObject forKey:aKey];
129}
◆ keyAtIndex:
| - (id) keyAtIndex: |
|
(NSUInteger) |
anIndex |
|
Definition at line 28 of file OrderedDictionary.m.
131 :(NSUInteger)anIndex
132{
133 return [array objectAtIndex:anIndex];
134}
◆ reverseKeyEnumerator
| - (NSEnumerator *) reverseKeyEnumerator |
|
|
|
◆ array
| - (NSMutableArray*) array |
|
protected |
◆ dictionary
| - (NSMutableDictionary*) dictionary |
|
protected |
The documentation for this class was generated from the following files: