Re: Trouble With NSURLSession...

2015-06-16 Thread Greg Parker
> 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:

Re: Trouble With NSURLSession...

2015-06-16 Thread Quincey Morris
> 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

Re: Trouble With NSURLSession...

2015-06-16 Thread Marco S Hyman
> 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

Re: Trouble With NSURLSession...

2015-06-16 Thread Peters, Brandon
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