FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSDictionary(NSData) Category Reference

NSDictionary creation methods extension with NSData. More...

#import <NSDictionary.h>

Instance Methods

Initializing a Dictionary
(instancetype) - initWithData:
 Initializes a newly allocated dictionary with the contents of data. Data must be property list. More...
 
(instancetype) - initWithData:format:error:
 Initializes a newly allocated dictionary with the contents of data. Data must be property list. More...
 

Class Methods

Creating a Dictionary
(instancetype) + dictionaryWithData:
 Creates and returns a dictionary containing the contents of data. Data must be property list. More...
 
(instancetype) + dictionaryWithData:format:error:
 Creates and returns a dictionary containing the contents of data. Data must be property list. More...
 

Detailed Description

NSDictionary creation methods extension with NSData.

Data must be property list.

Method Documentation

+ (instancetype) dictionaryWithData: (NSData *)  data

Creates and returns a dictionary containing the contents of data. Data must be property list.

See also
initWithData:
+ (instancetype) dictionaryWithData: (NSData *)  data
format: (NSPropertyListFormat *)  format
error: (NSError **)  error 

Creates and returns a dictionary containing the contents of data. Data must be property list.

See also
initWithData:format:error:
- (instancetype) initWithData: (NSData *)  data

Initializes a newly allocated dictionary with the contents of data. Data must be property list.

Parameters
dataAn NSData object containing bytes of plist file representation.
Returns
A dictionary initialized to contain the contents in data. Returns nil if the contents of the request can’t be parsed into a dictionary. The returned object might be different than the original receiver.
See also
initWithData:format:error:
dictionaryWithData:
- (instancetype) initWithData: (NSData *)  data
format: (NSPropertyListFormat *)  format
error: (NSError **)  error 

Initializes a newly allocated dictionary with the contents of data. Data must be property list.

Parameters
dataAn NSData object containing bytes of plist file representation.
formatA property list format. Possible values for format are described in NSPropertyListFormat.
errorIf the method does not complete successfully, upon return contains an NSError object that describes the problem.
Returns
A dictionary initialized to contain the contents in data. Returns nil if the contents of the request can’t be parsed into a dictionary. The returned object might be different than the original receiver.
See also
initWithData:
dictionaryWithData:format:error:

The documentation for this category was generated from the following file: