> 
On Jun 16, 2015, at 19:45 , Peters, Brandon <bap...@my.fsu.edu> 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 *class* function, so ‘self’ is a class 
object, not an instance of the class (which is what actually conforms to the 
NSURLSessionDelegate protocol). You can actually see that in the error message, 
where it tells you that the type of your object is HSNDataManager.Type (that 
is, a type of type).


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to