decodeTopLevelObjectForKey:error:
Decodes the previously-encoded object associated by a key, populating an error if decoding fails.
Declaration
- (id) decodeTopLevelObjectForKey:(NSString *) key error:(NSError **) error;Parameters
- key:
The key that identifies the object to decode.
- error:
An Nserror reference. On return, if this value is not
nil, it represents an error encountered while decoding.
Return Value
The decoded object, or nil if decoding fails.