Blame client/iOS/Additions/OrderedDictionary.h

Packit 1fb8d4
//
Packit 1fb8d4
//  OrderedDictionary.h
Packit 1fb8d4
//  OrderedDictionary
Packit 1fb8d4
//
Packit 1fb8d4
//  Modified version (Added indexForKey/Value functions)
Packit 1fb8d4
//
Packit 1fb8d4
//  Created by Matt Gallagher on 19/12/08.
Packit 1fb8d4
//  Copyright 2008 Matt Gallagher. All rights reserved.
Packit 1fb8d4
//
Packit 1fb8d4
//  This software is provided 'as-is', without any express or implied
Packit 1fb8d4
//  warranty. In no event will the authors be held liable for any damages
Packit 1fb8d4
//  arising from the use of this software. Permission is granted to anyone to
Packit 1fb8d4
//  use this software for any purpose, including commercial applications, and to
Packit 1fb8d4
//  alter it and redistribute it freely, subject to the following restrictions:
Packit 1fb8d4
//
Packit 1fb8d4
//  1. The origin of this software must not be misrepresented; you must not
Packit 1fb8d4
//     claim that you wrote the original software. If you use this software
Packit 1fb8d4
//     in a product, an acknowledgment in the product documentation would be
Packit 1fb8d4
//     appreciated but is not required.
Packit 1fb8d4
//  2. Altered source versions must be plainly marked as such, and must not be
Packit 1fb8d4
//     misrepresented as being the original software.
Packit 1fb8d4
//  3. This notice may not be removed or altered from any source
Packit 1fb8d4
//     distribution.
Packit 1fb8d4
//
Packit 1fb8d4
Packit 1fb8d4
#import <Foundation/Foundation.h>
Packit 1fb8d4
Packit 1fb8d4
@interface OrderedDictionary : NSMutableDictionary
Packit 1fb8d4
{
Packit 1fb8d4
	NSMutableDictionary *dictionary;
Packit 1fb8d4
	NSMutableArray *array;
Packit 1fb8d4
}
Packit 1fb8d4
Packit 1fb8d4
- (void)insertObject:(id)anObject forKey:(id)aKey atIndex:(NSUInteger)anIndex;
Packit 1fb8d4
- (id)keyAtIndex:(NSUInteger)anIndex;
Packit 1fb8d4
- (NSUInteger)indexForValue:(id)value;
Packit 1fb8d4
- (NSUInteger)indexForKey:(id)key;
Packit 1fb8d4
- (NSEnumerator *)reverseKeyEnumerator;
Packit 1fb8d4
Packit 1fb8d4
@end