Initializes a newly allocated dictionary using the keys and values found in a file at a given path.
- iOS 2.0–11.0Deprecated
- macOS 10.0–10.13Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–11.0Deprecated
- watchOS 2.0–4.0Deprecated
A full or relative pathname. The file identified by
pathmust contain a string representation of a property list whose root object is a dictionary.
An initialized dictionary—which might be different than the original receiver—that contains the dictionary at
nil if there is a file error or if the contents of the file are an invalid representation of a dictionary.
The dictionary representation in the file identified by
path must contain only property list objects (
NSDictionary objects). For more details, see Property List Programming Guide. The objects contained by this dictionary are immutable, even if the dictionary is mutable.