Files
RestKit/Code/Support/NSDictionary+RKAdditions.h

26 lines
659 B
Objective-C

//
// NSDictionary+RKAdditions.h
// RestKit
//
// Created by Blake Watters on 9/5/10.
// Copyright 2010 Two Toasters. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDictionary (RKAdditions)
/**
* Creates and initializes a dictionary with key value pairs, with the keys specified
* first instead of the objects. This allows for a more sensible definition of the
* property to element and relationship mappings on RKObjectMappable classes
*/
+ (id)dictionaryWithKeysAndObjects:(id)firstKey, ... NS_REQUIRES_NIL_TERMINATION;
/**
* Returns the key for an object within the dictionary
*/
- (id)keyForObject:(id)object;
@end