summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/NSMapTable+Subscripting.h
blob: 313e25be45ddbc405b7507ed4cf11825642f8e8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
//  NSMapTable+Subscripting.h
//  SmartDeviceLink-iOS
//
//  Created by Joel Fischer on 10/5/15.
//  Copyright © 2015 smartdevicelink. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/**
 *  Implement subscripting methods for NSMapTable to allow for easily pushing and pulling objects.
 */
@interface NSMapTable (Subscripting)

- (void)setObject:(nullable id)anObject forKeyedSubscript:(id<NSCopying>)key;
- (nullable id)objectForKeyedSubscript:(id<NSCopying>)key;

@end

NS_ASSUME_NONNULL_END