• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trouble With NSURLSession...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble With NSURLSession...


  • Subject: Re: Trouble With NSURLSession...
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 17 Jun 2015 02:56:51 +0000

>
On Jun 16, 2015, at 19:45 , Peters, Brandon <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden


References: 
 >Trouble With NSURLSession... (From: "Peters, Brandon" <email@hidden>)

  • Prev by Date: Re: Trouble With NSURLSession...
  • Next by Date: Re: Trouble With NSURLSession...
  • Previous by thread: Re: Trouble With NSURLSession...
  • Next by thread: Re: Trouble With NSURLSession...
  • Index(es):
    • Date
    • Thread