mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-12 22:40:25 +08:00
26 lines
659 B
Objective-C
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
|