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

Creation methods extension using NSURLRequest. More...

#import <NSURLRequestCreations.h>

Instance Methods

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

Class Methods

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

Detailed Description

Creation methods extension using NSURLRequest.

Method Documentation

+ (instancetype) arrayWithContentsOfURLRequest: (NSURLRequest *)  request

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

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

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

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

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

Parameters
requestThe URLRequest of a file containing a string representation of an array produced by the [NSData writeToURL:atomically:][0] method.
Returns
An array 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 an array. The returned object might be different than the original receiver.
See also
initWithContentsOfURLRequest:format:error:
arrayWithContentsOfURLRequest:format:error:
- (instancetype) initWithContentsOfURLRequest: (NSURLRequest *)  request
format: (NSPropertyListFormat *)  format
error: (NSError **)  error 

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

Parameters
requestThe URLRequest of a file containing a string representation of an array 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
An array 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 an array. The returned object might be different than the original receiver.
See also
initWithContentsOfURLRequest:
arrayWithContentsOfURLRequest:

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