-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNSDictionary+SDExtensions.h
executable file
·38 lines (33 loc) · 1.18 KB
/
NSDictionary+SDExtensions.h
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
28
29
30
31
32
33
34
35
36
37
38
//
// NSDictionary+SDExtensions.h
// SetDirection
//
// Created by Brandon Sneed on 6/27/11.
// Copyright 2011 Set Direction. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDictionary (NSDictionary_SDExtensions)
// values
- (NSString *)stringForKey:(NSString *)key;
- (NSInteger)intForKey:(NSString *)key;
- (NSInteger)integerForKey:(NSString *)key;
- (NSUInteger)unsignedIntForKey:(NSString *)key;
- (NSUInteger)unsignedIntegerForKey:(NSString *)key;
- (float)floatForKey:(NSString *)key;
- (double)doubleForKey:(NSString *)key;
- (long long)longLongForKey:(NSString *)key;
- (BOOL)boolForKey:(NSString *)key;
- (NSArray*)arrayForKey:(NSString *)key;
- (BOOL)keyExists:(NSString *)key;
// keypath values
- (NSString *)stringForKeyPath:(NSString *)key;
- (NSInteger)intForKeyPath:(NSString *)key;
- (NSInteger)integerForKeyPath:(NSString *)key;
- (NSUInteger)unsignedIntForKeyPath:(NSString *)key;
- (NSUInteger)unsignedIntegerForKeyPath:(NSString *)key;
- (float)floatForKeyPath:(NSString *)key;
- (double)doubleForKeyPath:(NSString *)key;
- (long long)longLongForKeyPath:(NSString *)key;
- (BOOL)boolForKeyPath:(NSString *)key;
- (NSArray*)arrayForKeyPath:(NSString *)key;
@end