forked from rpetrich/preferenceloader
-
Notifications
You must be signed in to change notification settings - Fork 6
/
prefs.h
26 lines (19 loc) · 823 Bytes
/
prefs.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
#import <Preferences/PSListController.h>
#import <Preferences/PSSpecifier.h>
#import <UIKit/UIFunctions.h>
@interface PSListController (libprefs)
- (NSArray *)specifiersFromEntry:(NSDictionary *)entry sourcePreferenceLoaderBundlePath:(NSString *)sourceBundlePath title:(NSString *)title;
@end
extern NSString *const PLFilterKey;
@interface PSSpecifier (libprefs)
+ (BOOL)environmentPassesPreferenceLoaderFilter:(NSDictionary *)filter;
@property (nonatomic, retain, readonly) NSBundle *preferenceLoaderBundle;
@end
@interface PLCustomListController: PSListController { }
@end
@interface PLLocalizedListController: PLCustomListController { }
@end
NSString *_realPath2(NSString *path) {
return [UISystemRootDirectory() stringByAppendingPathComponent: path];
}
#define _realPath(path) ([_realPath2(@path) UTF8String])