Defaults.h 539 B

1234567891011121314151617181920212223
  1. //
  2. // Defaults.h
  3. // MG
  4. //
  5. // Created by Tim Debo on 6/1/14.
  6. //
  7. //
  8. #import "Command.h"
  9. @protocol DefaultExports <JSExport>
  10. @property (readonly) NSDictionary* defaults;
  11. JSExportAs(get, - (JSValue*) get: (NSString*) key ofType: (NSString*) type);
  12. JSExportAs(set, - (void) setKey:(NSString*)key withValue: (JSValue*) value ofType: (NSString*) type);
  13. - (void) remove: (NSString*) key;
  14. @end
  15. @interface Defaults : Command <DefaultExports>
  16. - (void)defaultsChanged:(NSNotification *)notification;
  17. - (NSDictionary*) defaultsDictionary;
  18. @end