Skip to content

A NSOperation-based wrapper for delegate-based NSURLSession

Notifications You must be signed in to change notification settings

vijayradke/NetworkManager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NetworkManager

A NSOperation-based implementation of delegate-based NSURLSession

--

This is an demonstration of a NSOperation-based implementation of delegate-based NSURLSession.

Because the delegate-based NSURLSession object uses a single object as the delegate for both session and task delegate methods, one has to maintain a mapping between the identifier of the various NSURLSessionTask objects and the associated NSOperation subclass object. Once that is done, the NSURLSessionTaskDelegate object can use that cross reference to invoke the appropriate method in the NSOperation subclass.

This is for illustrative purposes only.

Developed in Xcode 5.1.1 for iOS 7.0+, also tested on Xcode 6.0 Beta.

Class Reference

http://robertmryan.github.io/NetworkManager/Classes/NetworkManager.html

License

Copyright © 2014 Robert Ryan. All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

--

10 June 2014

About

A NSOperation-based wrapper for delegate-based NSURLSession

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%