NSUserDefaults+FLEX.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // NSUserDefaults+FLEX.h
  3. // FLEX
  4. //
  5. // Created by Tanner on 3/10/20.
  6. // Copyright © 2020 FLEX Team. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. // Only use these if the getters and setters aren't good enough for whatever reason
  10. extern NSString * const kFLEXDefaultsToolbarTopMarginKey;
  11. extern NSString * const kFLEXDefaultsiOSPersistentOSLogKey;
  12. extern NSString * const kFLEXDefaultsHidePropertyIvarsKey;
  13. extern NSString * const kFLEXDefaultsHidePropertyMethodsKey;
  14. extern NSString * const kFLEXDefaultsHideMethodOverridesKey;
  15. extern NSString * const kFLEXDefaultsHideVariablePreviewsKey;
  16. extern NSString * const kFLEXDefaultsNetworkHostBlacklistKey;
  17. extern NSString * const kFLEXDefaultsDisableOSLogForceASLKey;
  18. extern NSString * const kFLEXDefaultsRegisterJSONExplorerKey;
  19. /// All BOOL preferences are NO by default
  20. @interface NSUserDefaults (FLEX)
  21. - (void)flex_toggleBoolForKey:(NSString *)key;
  22. @property (nonatomic) double flex_toolbarTopMargin;
  23. // Not actually stored in defaults, but written to a file
  24. @property (nonatomic) NSArray<NSString *> *flex_networkHostBlacklist;
  25. /// Whether or not to register the object explorer as a JSON viewer on launch
  26. @property (nonatomic) BOOL flex_registerDictionaryJSONViewerOnLaunch;
  27. /// Disable os_log and re-enable ASL. May break Console.app output.
  28. @property (nonatomic) BOOL flex_disableOSLog;
  29. @property (nonatomic) BOOL flex_cacheOSLogMessages;
  30. @property (nonatomic) BOOL flex_explorerHidesPropertyIvars;
  31. @property (nonatomic) BOOL flex_explorerHidesPropertyMethods;
  32. @property (nonatomic) BOOL flex_explorerShowsMethodOverrides;
  33. @property (nonatomic) BOOL flex_explorerHidesVariablePreviews;
  34. @end