-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplistReader.h
More file actions
36 lines (25 loc) · 1.09 KB
/
Copy pathplistReader.h
File metadata and controls
36 lines (25 loc) · 1.09 KB
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
//
// plistReader.h
//
#import <Foundation/Foundation.h>
@interface plistReader : NSObject {
@protected
NSMutableDictionary *data;
}
@property (readonly) NSDictionary* data;
- (id) initWithPlistName:(NSString*)plistName;
- (id) initWithPlistName:(NSString*)plistName withAlternate:(NSString*)alternate;
- (id) initWithDictionary:(NSDictionary*)d;
//path is branch/key
- (id) objectForPath:(NSString*)path;
- (id) objectForKey:(NSString*)key fromBranch:(NSString*)branch;
- (NSString*) stringForKey:(NSString*)key fromBranch:(NSString*)branch;
- (NSNumber*) numberForKey:(NSString*)key fromBranch:(NSString*)branch;
- (NSInteger) integerForKey:(NSString*)key fromBranch:(NSString*)branch;
- (BOOL) boolForKey:(NSString*)key fromBranch:(NSString*)branch;
- (NSArray*) arrayForKey:(NSString*)key fromBranch:(NSString*)branch;
- (NSArray*) arrayForIndex:(NSInteger)level forKey:(NSString*)key fromBranch:(NSString*)branch;
//for reading integers from an indexed table
//index is 0 based
- (NSInteger) integerForIndex:(NSInteger)index fromTable:(NSString*)table fromBranch:(NSString*)branch;
@end