diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 906da93e5..a4a0a8143 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -3724,7 +3724,8 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool } [pasteboard declareTypes:@[ kTorrentTableViewDataType ] owner:self]; - [pasteboard setData:[NSKeyedArchiver archivedDataWithRootObject:indexSet] forType:kTorrentTableViewDataType]; + [pasteboard setData:[NSKeyedArchiver archivedDataWithRootObject:indexSet requiringSecureCoding:YES error:nil] + forType:kTorrentTableViewDataType]; return YES; } return NO; diff --git a/macosx/GroupsController.mm b/macosx/GroupsController.mm index d1a4ebd7b..ac46332db 100644 --- a/macosx/GroupsController.mm +++ b/macosx/GroupsController.mm @@ -356,7 +356,9 @@ GroupsController* fGroupsInstance = nil; [groups addObject:tempDict]; } - [NSUserDefaults.standardUserDefaults setObject:[NSKeyedArchiver archivedDataWithRootObject:groups] forKey:@"GroupDicts"]; + [NSUserDefaults.standardUserDefaults setObject:[NSKeyedArchiver archivedDataWithRootObject:groups requiringSecureCoding:YES + error:nil] + forKey:@"GroupDicts"]; } - (NSImage*)imageForGroupNone diff --git a/macosx/GroupsPrefsController.mm b/macosx/GroupsPrefsController.mm index 86d6b6d7f..9be46dc56 100644 --- a/macosx/GroupsPrefsController.mm +++ b/macosx/GroupsPrefsController.mm @@ -93,7 +93,8 @@ typedef NS_ENUM(NSInteger, SegmentTag) { - (BOOL)tableView:(NSTableView*)tableView writeRowsWithIndexes:(NSIndexSet*)rowIndexes toPasteboard:(NSPasteboard*)pboard { [pboard declareTypes:@[ kGroupTableViewDataType ] owner:self]; - [pboard setData:[NSKeyedArchiver archivedDataWithRootObject:rowIndexes] forType:kGroupTableViewDataType]; + [pboard setData:[NSKeyedArchiver archivedDataWithRootObject:rowIndexes requiringSecureCoding:YES error:nil] + forType:kGroupTableViewDataType]; return YES; } diff --git a/macosx/TorrentTableView.mm b/macosx/TorrentTableView.mm index 509d0a0d5..17297f2e5 100644 --- a/macosx/TorrentTableView.mm +++ b/macosx/TorrentTableView.mm @@ -156,7 +156,8 @@ static NSTimeInterval const kToggleProgressSeconds = 0.175; - (void)saveCollapsedGroups { - [self.fDefaults setObject:[NSKeyedArchiver archivedDataWithRootObject:self.fCollapsedGroups] forKey:@"CollapsedGroupIndexes"]; + [self.fDefaults setObject:[NSKeyedArchiver archivedDataWithRootObject:self.fCollapsedGroups requiringSecureCoding:YES error:nil] + forKey:@"CollapsedGroupIndexes"]; } - (BOOL)outlineView:(NSOutlineView*)outlineView isGroupItem:(id)item