Overridden by subclasses to substitute another object in place of the object that was decoded and subsequently received this message.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The decoder used to decode the receiver.
The receiver, or another object to take the place of the object that was decoded and subsequently received this message.
You can use this method to eliminate redundant objects created by the coder. For example, if after decoding an object you discover that an equivalent object already exists, you can return the existing object. If a replacement is returned, your overriding method is responsible for releasing the receiver.
This method is invoked by
NSObject’s implementation simply returns