DDBSettingsController.m 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //#include "DDBRootListController.h"
  2. //
  3. //@implementation DDBRootListController
  4. //
  5. //- (NSArray *)specifiers {
  6. // if (!_specifiers) {
  7. // _specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain];
  8. // }
  9. //
  10. // return _specifiers;
  11. //}
  12. //
  13. //@end
  14. #import "DDBSettingsController.h"
  15. @implementation DDBSettingsController
  16. - (id)loadSettingGroups {
  17. /*
  18. +[<TSKSettingItem: 0x1ad71bc88> toggleItemWithTitle:Automatically Update Apps description:(null) representedObject:<TVSettingsPreferenceFacade: 0x1c0438480> keyPath:AutoUpdatesEnabled onTitle:(null) offTitle:(null)]
  19. */
  20. id facade = [[ NSClassFromString(@"TVSettingsPreferenceFacade") alloc] initWithDomain:@"com.nito.dalesdeadbug" notifyChanges:TRUE];
  21. NSMutableArray *_backingArray = [NSMutableArray new];
  22. TSKSettingItem *toggleItem = [TSKSettingItem toggleItemWithTitle:@"Version spoofing" description:@"Whether or not to spoof a higher OS version to install officially unsupported application versions. " representedObject:facade keyPath:@"Enabled" onTitle:nil offTitle:nil];
  23. //TSKSettingItem *textEntryItem = [TSKSettingItem textInputItemWithTitle:@"Tests text entry" description:@"This is a test" representedObject:facade keyPath:@"textTest"];
  24. /*
  25. multiValueItemWithTitle:Apple TV Name description:You can name your Apple TV to make it easy to recognize when you use AirPlay and Home Sharing. representedObject:<TVSettingsDeviceFacade: 0x1c087e2c0> keyPath:name availableValues:(
  26. "Apple TV",
  27. "Living Room",
  28. "Family Room",
  29. Bedroom,
  30. Kitchen,
  31. "Great Room",
  32. Office
  33. )]
  34. */
  35. TSKSettingItem *multiItem = [TSKSettingItem multiValueItemWithTitle:@"Spoofed Version" description:@"The version you are going to spoof." representedObject:facade keyPath:@"version" availableValues:@[@"11.1", @"11.2", @"11.3", @"11.4"]];
  36. TSKSettingGroup *group = [TSKSettingGroup groupWithTitle:nil settingItems:@[toggleItem, multiItem]];
  37. [_backingArray addObject:group];
  38. [self setValue:_backingArray forKey:@"_settingGroups"];
  39. return _backingArray;
  40. }
  41. @end