Click here to support Nimbus development and make a donation at www.pledgie.com !
An iOS framework whose growth is bounded by O(documentation).
NINetworkJSONRequest Class Reference

Overview

A processor that uses JSONKit to turn the JSON response into objects.

A processor that uses NSJSONSerialization to turn the JSON response into objects.

Attention:
Depends on the JSONKit source being included in the app.

NSJSONSerialization is included with iOS 5.0 but is is incredibly slow compared to JSONKit. If possible you should use the JSONKit NINetworkJSONRequest object instead.

Definition at line 29 of file NINetworkJSONRequest.h.

Inheritance diagram for NINetworkJSONRequest:
NINetworkRequestOperation NINetworkRequestOperation NIOperation NIOperation

Methods

Configuring the Operation
NSURL * url property
NSTimeInterval timeout property
NSURLRequestCachePolicy cachePolicy property
Operation Results
NSDatadata property
id processedObject property
Creating an Operation
(id) - initWithURL:
Delegation
id< NIOperationDelegatedelegate property
Post-Operation Properties
NSError * lastError property
Identification
NSInteger tag property
Blocks
NIBasicBlock didStartBlock property
NIBasicBlock didFinishBlock property
NIErrorBlock didFailWithErrorBlock property
NIBasicBlock willFinishBlock property
Subclassing

The following methods are provided to aid in subclassing and are not meant to be used externally.

(void) - didStart
(void) - didFinish
(void) - willFinish

Method Documentation

- NINetworkRequestOperation: [read, write, copy, inherited]

The url that will be loaded in the network operation.

Definition at line 82 of file NIOperations.h.

- NINetworkRequestOperation: [read, write, assign, inherited]

The number of seconds that may pass before a request gives up and fails.

Definition at line 83 of file NIOperations.h.

- NINetworkRequestOperation: [read, write, assign, inherited]

The request cache policy to use.

Definition at line 84 of file NIOperations.h.

- NINetworkRequestOperation: [read, retain, inherited]

The data received from the request.

Will be nil if the request failed.

See also:
NIOperation::lastError

Definition at line 85 of file NIOperations.h.

- NINetworkRequestOperation: [read, write, retain, inherited]

An object created from the data that was fetched.

Will be nil if the request failed.

See also:
NIOperation::lastError

Definition at line 86 of file NIOperations.h.

- (id) initWithURL: (NSURL *)  url

Initializes a newly allocated network operation with a given url.

Definition at line 189 of file NIOperations.m.

- NIOperation: [read, write, assign, inherited]

The delegate through which changes are notified for this operation.

All delegate methods are performed on the main thread.

Definition at line 48 of file NIOperations.h.

- NIOperation: [read, retain, inherited]

The error last passed to the didFailWithError notification.

Definition at line 49 of file NIOperations.h.

- NIOperation: [read, write, assign, inherited]

A simple tagging mechanism for identifying operations.

Definition at line 50 of file NIOperations.h.

- NIOperation: [read, write, copy, inherited]

The operation has started executing.

Performed on the main thread.

Definition at line 54 of file NIOperations.h.

- NIOperation: [read, write, copy, inherited]

The operation has completed successfully.

This will not be called if the operation fails.

Performed on the main thread.

Definition at line 55 of file NIOperations.h.

- NIOperation: [read, write, copy, inherited]

The operation failed in some way and has completed.

didFinishBlock will not be executed.

Performed on the main thread.

Definition at line 56 of file NIOperations.h.

- NIOperation: [read, write, copy, inherited]

The operation is about to complete successfully.

This will not be called if the operation fails.

Performed in the operation's thread.

Definition at line 57 of file NIOperations.h.

- (void) didStart

On the main thread, notify the delegate that the operation has begun.

Definition at line 67 of file NIOperations.m.

- (void) didFinish

On the main thread, notify the delegate that the operation has finished.

Definition at line 75 of file NIOperations.m.

- (void) willFinish

In the operation's thread, notify the delegate that the operation will finish successfully.

Definition at line 93 of file NIOperations.m.

Generated for Nimbus by doxygen 1.7.4-20110629