> On Jun 16, 2015, at 7:45 PM, Peters, Brandon wrote:
>
> Here is the exact compiler message:
>
> swift:20:26: Cannot find an initializer for type 'NSURLSession' that accepts
> an argument list of type '(configuration: NSURLSessionConfiguration,
> delegate: HSNDataManager.Type, delegateQueue:
>
On Jun 16, 2015, at 19:45 , Peters, Brandon wrote:
>
> swift:20:26: Cannot find an initializer for type 'NSURLSession' that accepts
> an argument list of type '(configuration: NSURLSessionConfiguration,
> delegate: HSNDataManager.Type, delegateQueue: nil)'
The function that calls this is a
> swift:20:26: Cannot find an initializer for type 'NSURLSession' that accepts
> an argument list of type '(configuration: NSURLSessionConfiguration,
> delegate: HSNDataManager.Type, delegateQueue: nil)’
You are passing “self” as the delegate in a *class* method. The class is
not a NSURLSessionD
Figured it out: Needed to be ->
var urlSession = NSURLSession(configuration: urlSessionConfiguration, delegate:
HSNDataManger.dataManager, delegateQueue: nil)
On Jun 16, 2015, at 10:42 PM, Peters, Brandon
mailto:bap...@my.fsu.edu>> wrote:
Hello,
I am creating a class to handle downloading m