杨锴
2024-10-09 e987bc09f955e01c2835f01e3a6af20723a579f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
//  NSDictionary+OBSMTLJSONKeyPath.h
//  Mantle
//
//  Created by Robert Böhnke on 19/03/14.
//  Copyright (c) 2014 GitHub. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
@interface NSDictionary (OBSMTLJSONKeyPath)
 
/// Looks up the value of a key path in the receiver.
///
/// JSONKeyPath - The key path that should be resolved. Every element along this
///               key path needs to be an instance of NSDictionary for the
///               resolving to be successful.
/// success     - If not NULL, this will be set to a boolean indicating whether
///               the key path was resolved successfully.
/// error       - If not NULL, this may be set to an error that occurs during
///               resolving the value.
///
/// Returns the value for the key path which may be nil. Clients should inspect
/// the success parameter to decide how to proceed with the result.
- (id)obs_mtl_valueForJSONKeyPath:(NSString *)JSONKeyPath success:(BOOL *)success error:(NSError **)error;
 
@end