Decodes an array of
count items, whose Objective-C type is given by
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The items are decoded into the buffer beginning at
address, which must be large enough to contain them all.
item must contain exactly one type code.
NSCoder’s implementation invokes
decode to decode the entire array of items.
This method matches an
encode message used during encoding.
For information on creating an Objective-C type code suitable for
item, see Type Encodings.
You should not use this method to decode C arrays of Objective-C objects. For historical reasons, returned objects will have an additional ownership reference which you can only relinquish using