I have an NSMutableArray
of custom objects which are archived via NSArchiver
. I need to be able to retrieve the archive as a backup and merge it with the existing NSMutableArray
in app. I need to remove duplicates between the in-app NSMutableArray
and the unarchived one but the usual methods of using NSSet
or using comparison via isEqual
or containsObject
do not work as the objects though originally equal are apparently not after archiving. I can do a nested iteration through both arrays and compare the object ivars but that seems pretty heavy handed.
Is there something I'm missing. I am somewhat new to objective-C and using NSArchiver
.