commit | author | age
|
3eceb5
|
1 |
// |
W |
2 |
// OrderedDictionary.h |
|
3 |
// OrderedDictionary |
|
4 |
// |
|
5 |
// Created by Matt Gallagher on 19/12/08. |
|
6 |
// Copyright 2008 Matt Gallagher. All rights reserved. |
|
7 |
// |
|
8 |
// This software is provided 'as-is', without any express or implied |
|
9 |
// warranty. In no event will the authors be held liable for any damages |
|
10 |
// arising from the use of this software. Permission is granted to anyone to |
|
11 |
// use this software for any purpose, including commercial applications, and to |
|
12 |
// alter it and redistribute it freely, subject to the following restrictions: |
|
13 |
// |
|
14 |
// 1. The origin of this software must not be misrepresented; you must not |
|
15 |
// claim that you wrote the original software. If you use this software |
|
16 |
// in a product, an acknowledgment in the product documentation would be |
|
17 |
// appreciated but is not required. |
|
18 |
// 2. Altered source versions must be plainly marked as such, and must not be |
|
19 |
// misrepresented as being the original software. |
|
20 |
// 3. This notice may not be removed or altered from any source |
|
21 |
// distribution. |
|
22 |
// |
|
23 |
|
|
24 |
#import <Foundation/Foundation.h> |
|
25 |
|
|
26 |
@interface OrderedDictionary : NSMutableDictionary { |
|
27 |
NSMutableDictionary *dictionary; |
|
28 |
NSMutableArray *array; |
|
29 |
} |
|
30 |
|
|
31 |
- (void)insertObject:(id)anObject forKey:(id)aKey atIndex:(NSUInteger)anIndex; |
|
32 |
|
|
33 |
- (id)keyAtIndex:(NSUInteger)anIndex; |
|
34 |
|
|
35 |
- (NSEnumerator *)reverseKeyEnumerator; |
|
36 |
|
|
37 |
@end |