Sets a global translation mapping to decode objects encoded with a given class name as instances of a given class instead.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The class with which to replace instances of the class named
The ostensible name of a class in an archive.
When decoding, the class’s translation mapping is used only if no translation is found first in an instance’s separate translation map.