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

Creation methods extension using NSURLRequest. More...

#import <NSURLRequestCreations.h>

Instance Methods

(instancetype) - initWithContentsOfURLRequest:
 Initializes a newly allocated dictionary with the contents of the result specified by a given request. More...
 
(instancetype) - initWithContentsOfURLRequest:format:error:
 Initializes a newly allocated dictionary with the contents of the result specified by a given request. More...
 

Class Methods

(instancetype) + dictionaryWithContentsOfURLRequest:
 Creates and returns a dictionary containing the contents of the result specified by a given request. More...
 
(instancetype) + dictionaryWithContentsOfURLRequest:format:error:
 Creates and returns a dictionary containing the contents of the result specified by a given request. More...
 

Detailed Description

Creation methods extension using NSURLRequest.

Method Documentation

+ (instancetype) dictionaryWithContentsOfURLRequest: (NSURLRequest *)  request

Creates and returns a dictionary containing the contents of the result specified by a given request.

See also
initWithContentsOfURLRequest:
+ (instancetype) dictionaryWithContentsOfURLRequest: (NSURLRequest *)  request
format: (NSPropertyListFormat *)  format
error: (NSError **)  error 

Creates and returns a dictionary containing the contents of the result specified by a given request.

See also
initWithContentsOfURLRequest:format:error:
- (instancetype) initWithContentsOfURLRequest: (NSURLRequest *)  request

Initializes a newly allocated dictionary with the contents of the result specified by a given request.

Parameters
requestThe URLRequest of a file containing a string representation of a dictionary produced by the '-writeToURL:atomically:' method.
Returns
A dictionary initialized to contain the contents specified by request. Returns nil if the location can’t be opened or 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
initWithContentsOfURLRequest:format:error:
dictionaryWithContentsOfURLRequest:format:error:
- (instancetype) initWithContentsOfURLRequest: (NSURLRequest *)  request
format: (NSPropertyListFormat *)  format
error: (NSError **)  error 

Initializes a newly allocated dictionary with the contents of the result specified by a given request.

Parameters
requestThe URLRequest of a file containing a string representation of a dictionary produced by the '-writeToURL:atomically:' method.
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 specified by request. Returns nil if the location can’t be opened or 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
initWithContentsOfURLRequest:
dictionaryWithContentsOfURLRequest:

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